sig
module Deferred :
sig
type ('a, 'execution_context) t =
('a, 'execution_context) Raw_deferred.t
type ('a, 'execution_context) deferred = ('a, 'execution_context) t
val of_ivar :
('a, 'execution_context) Raw_ivar.t -> ('a, 'execution_context) t
val create :
(('a, 'execution_context) Raw_ivar.t -> unit) ->
('a, 'execution_context) t
val peek : ('a, 'b) t -> 'a option
val is_determined : ('a, 'b) t -> bool
val return : 'a -> ('a, 'b) t
module Scheduler_dependent :
functor (Scheduler : Import.Basic_scheduler) ->
sig
type 'a t = ('a, Scheduler.Execution_context.t) deferred
val sexp_of_t : ('a -> Sexplib.Sexp.t) -> 'a t -> Sexplib.Sexp.t
type 'a detailed = 'a t
val sexp_of_detailed :
('a -> Sexplib.Sexp.t) -> 'a detailed -> Sexplib.Sexp.t
val upon : 'a t -> ('a -> unit) -> unit
val upon' : 'a t -> ('a -> unit) -> Unregister.t
val bind : 'a t -> ('a -> 'b t) -> 'b t
val install_removable_handler :
'a t ->
('a, Scheduler.Execution_context.t) Raw_handler.t ->
Unregister.t
end
val ounit_tests : unit -> OUnit.test
end
type ('a, 'execution_context) t =
(('a, 'execution_context) next, 'execution_context) Deferred.t
and ('a, 'execution_context) next =
('a, 'execution_context) Raw_stream.next =
Nil
| Cons of 'a * ('a, 'execution_context) t
val next : 'a -> 'a
val sexp_of_t :
('a -> Core.Std.Sexp.t) ->
'b -> (('a, 'c) next, 'c) Deferred.t -> Core.Std.Sexp.t
val ounit_tests : unit -> OUnit.test
end