A simple thread-safe ivar implementation. All the functions in this module can be used inside In_thread.run.
In_thread.run
type 'a t
include sig ... end
val sexp_of_t : ('a ‑> Base.Sexp.t) ‑> 'a t ‑> Base.Sexp.t
val create : unit ‑> _ t
val fill : 'a t ‑> 'a ‑> unit
val read : 'a t ‑> 'a
read t blocks until t is filled.
read t
t