module Raw_deferred: sig
.. end
Internal to async -- see
Deferred
for the public API.
type +'a
t
type 'a
deferred = 'a t
val of_ivar : 'a Raw_ivar.t -> 'a t
val peek : 'a t -> 'a option
val create : ('a Raw_ivar.t -> 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
module Handler: sig
.. 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