#include "nix/util/fun.hh"
#include <memory>
#include <mutex>
#include <optional>
Go to the source code of this file.
Memoize a fun<T()>.
Copies of the returned fun share the same cache. Thread-safe.