type ('a, -'permissions) t
= ('a, 'permissions) Async_kernel__.Types.Bvar.t
val create : unit -> ('a, Core_kernel.read_write) t
val wait : ('a, [> Core_kernel.read ]) t -> 'a Async_kernel__.Deferred0.t
wait t
becomes determined by the next call to broadcast t a
.
val broadcast : ('a, [> Core_kernel.write ]) t -> 'a -> unit
val has_any_waiters : ('a, _) t -> bool
has_any_waiters t
returns true
iff there has been a call to wait t
since the most recent call to broadcast t
.