Module Ivar.Deferred

module Deferred: sig .. end
The Deferred module exposed here is for async's internal use only.

type +'a t 
module Handler: sig .. end
val create : ('a Ivar.ivar -> unit) -> 'a t
val peek : 'a t -> 'a option
val is_determined : 'a t -> bool
val return : 'a -> 'a t
val upon : 'a t -> ('a -> unit) -> unit
val bind : 'a t -> ('a -> 'b t) -> 'b t
val add_handler : 'a t ->
('a -> unit) -> Execution_context.t -> 'a Handler.t
val remove_handler : 'a t -> 'a Handler.t -> unit
val sexp_of_t : ('a -> Sexplib.Sexp.t) -> 'a t -> Sexplib.Sexp.t