Module IStdlib.SafeLazy

type 'a t

A wrapper around a lazy value that can be forced in a thread-safe manner. NB values can only be marshalled if they were created by from_val or they have already been forced.

val make : 'a IStdlib.IStd.Lazy.t -> 'a t
val from_val : 'a -> 'a t
val from_val_option : 'a option -> 'a t option
val force : 'a t -> 'a
val force_option : 'a t option -> 'a option