Cell.OnceSet-once immutable cells.
A set-once immutable cell is a cell that can be set exactly once:
Once.try_set sets the value of the cell if still unset.Once.get blocks until the value of the cell is set.val make : unit -> 'a tmake () is a new set-once immutable cell.
val from_val : 'a -> 'a tfrom_val v is a cell already set to v.
val try_set : 'a t -> 'a -> unittry_set cell v attempts to set cell to v if not already set.
val try_set_is_ours : 'a t -> 'a -> booltry_set_is_ours cell v attempts to set cell to v and returns:
true if the cell was unset and set to v by the call.false if the cell was already set, in which case nothing happened.val get : 'a t -> 'aget cell blocks until cell's value is set to v and continues with v.
val is_set : 'a t -> boolis_set cell is true if and only if cell is set.