package async_kernel

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Async_kernel.ConditionSource

Async's implementation of the standard notion of a "condition" variable.

This 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.

Sourcetype 'a t
Sourceval sexp_of_t : ('a -> Sexplib0.Sexp.t) -> 'a t -> Sexplib0.Sexp.t
Sourceval create : unit -> _ t
Sourceval signal : 'a t -> 'a -> unit
Sourceval broadcast : 'a t -> 'a -> unit
Sourceval wait : 'a t -> 'a Deferred.t
OCaml

Innovation. Community. Security.