Up

module Raw_deferred

: sig

Internal to Async -- see [root:Deferred] for the public API.

#
type +'a t
#
type 'a deferred = 'a t
#
val of_ivar : 'a Raw_ivar.t -> 'a t
#
val create : ('a Raw_ivar.t -> unit) -> 'a t
#
val peek : 'a t -> 'a option
#
val is_determined : _ t -> bool
#
val return : 'a -> 'a t
#
val upon : 'a t -> ('a -> unit) -> unit
#
val bind : 'a t -> ('a -> 'b t) -> 'b t
#
module Handler : sig
#
type 'a t
#
val sexp_of_t : ('a -> Sexplib.Sexp.t) -> 'a t -> Sexplib.Sexp.t
end
#
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
end