Picos_domain.DLSDomain-local storage for Picos.
ℹ️ On OCaml 4 there is always only a single domain.
val new_key : (unit -> 'a) -> 'a keynew_key compute allocates a new key for associating values in storage associated with domains. The initial value for each domain is computed by calling the given function if the key is read before it has been written. The compute function might be called multiple times per domain, but only one result will be used.
val get : 'a key -> 'aget key returns the value associated with the key in the storage associated with the current domain.
val set : 'a key -> 'a -> unitset key value sets the value associated with the key in the storage associated with the current domain.