module Async_condition:sig..end
Async.Condition is async's implementation of the standard notion of a "condition"
variable, and is analogous to OCaml's Condition module. The main guarantee that a
condition variable provides is that a call to signal (or broadcast) after a call
to wait will be seen by the waiter.
Unlike the use of condition variables in ordinary threaded programs, async condition
variables do not require a mutex, since async programs are cooperatively threaded.
type 'a t
val create : unit -> 'a tval signal : 'a t -> 'a -> unitval broadcast : 'a t -> 'a -> unitval wait : 'a t -> 'a Deferred.tval sexp_of_t : ('a -> Sexplib.Sexp.t) -> 'a t -> Sexplib.Sexp.t