Reinstate(path compute)
Signature: path:string -> (compute:(unit -> 't)) -> 't
Type parameters: 't
|
Reinstates a value either from the storage or recomputing a value from the function.
In the latter case, stores the computed value before returning it to the caller.
|