Up
Module
Deferred
=
Async_kernel.Deferred1
Signature
module
Scheduler
=
Async_kernel.Scheduler1
include
Async_kernel.Deferred0
type
+'a t = 'a
Async_kernel.Types.Deferred.t
val
sexp_of_t : ('a ->
Sexplib.Sexp.t
) -> 'a
t
->
Sexplib.Sexp.t
type
'a deferred = 'a
t
include
Core_kernel.Std.Invariant.S1
with
type
'a
t
:= 'a
t
type
'a t
val
invariant : 'a
Invariant_intf.inv
-> 'a
t
Invariant_intf.inv
val
of_ivar : 'a
Async_kernel.Ivar0.t
-> 'a
t
val
create : ('a
Async_kernel.Ivar0.t
-> unit) -> 'a
t
val
peek : 'a
t
-> 'a option
val
value_exn : 'a
t
-> 'a
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 .. end
val
add_handler : 'a
t
-> ('a -> unit) ->
Async_kernel.Execution_context.t
-> 'a
Handler.t
val
remove_handler : 'a
t
-> 'a
Handler.t
-> unit
val
never : unit -> 'a
Async_kernel.Deferred0.t
val
(>>=) : 'a
Async_kernel.Types.Deferred.t
-> ('a -> 'b
Async_kernel.Types.Deferred.t
) -> 'b
Async_kernel.Types.Deferred.t
val
(>>|) : 'a
Async_kernel.Types.Deferred.t
-> ('a -> 'b) -> 'b
Async_kernel.Types.Deferred.t
module
Monad_infix
: sig .. end
val
bind : 'a
Async_kernel.Types.Deferred.t
-> ('a -> 'b
Async_kernel.Types.Deferred.t
) -> 'b
Async_kernel.Types.Deferred.t
val
return : 'a -> 'a
Async_kernel.Types.Deferred.t
val
map : 'a
Async_kernel.Types.Deferred.t
-> f:('a -> 'b) -> 'b
Async_kernel.Types.Deferred.t
val
join : 'a
Async_kernel.Types.Deferred.t
Async_kernel.Types.Deferred.t
-> 'a
Async_kernel.Types.Deferred.t
val
ignore_m : 'a
Async_kernel.Types.Deferred.t
-> unit
Async_kernel.Types.Deferred.t
val
all : 'a
Async_kernel.Types.Deferred.t
list -> 'a list
Async_kernel.Types.Deferred.t
val
all_ignore : unit
Async_kernel.Types.Deferred.t
list -> unit
Async_kernel.Types.Deferred.t
module
Let_syntax
: sig .. end
val
all : [>
| `Make_sure_to_define_all_elsewhere
]
val
unit : unit
Async_kernel.Types.Deferred.t
val
ignore : 'a
Async_kernel.Types.Deferred.t
-> unit
Async_kernel.Types.Deferred.t
val
both : 'a
t
-> 'b
t
-> ('a * 'b)
t
module
Infix
: sig .. end
val
don't_wait_for : unit
t
-> unit
module
Choice
: sig .. end
type
'a choice = 'a
Choice.t
module
Unregister
: sig .. end
val
choice : 'a
Async_kernel.Deferred0.t
-> ('a -> 'b) -> 'b
Choice.t
val
enabled : 'a
Choice.t
Core_kernel.Std.List.t
-> (unit -> 'a
Core_kernel.Std.List.t
)
Async_kernel.Deferred0.t
val
choose_result : 'a
Choice.t
list -> 'a
val
choose : 'a
Choice.t
Core_kernel.Std.List.t
-> 'a
Async_kernel.Deferred0.t
val
any_f : 'a
Async_kernel.Deferred0.t
Core_kernel.Std.List.t
-> ('a -> 'b) -> 'b
Async_kernel.Deferred0.t
val
any : 'a
Async_kernel.Deferred0.t
Core_kernel.Std.List.t
-> 'a
Async_kernel.Deferred0.t
val
any_unit : 'a
Async_kernel.Deferred0.t
Core_kernel.Std.List.t
-> unit
Async_kernel.Deferred0.t
val
repeat_until_finished : 'a -> ('a -> [<
| `Finished
of
'b
| `Repeat
of
'a
]
t
) -> 'b
t
val
forever : 'a -> ('a -> 'a
Async_kernel.Types.Deferred.t
) -> unit
type
how =
Async_kernel.Monad_sequence.how
val
sexp_of_how :
how
->
Sexplib.Sexp.t
module type
Monad_sequence
=
Async_kernel.Monad_sequence.S
with
type
'a
monad
:= 'a
t
val
fold : 'a list -> init:'b -> f:('b -> 'a -> 'b
t
) -> 'b
t
val
seqmap : 'a list -> f:('a -> 'b
Async_kernel.Types.Deferred.t
) -> 'b
Core_kernel.Std.List.t
Async_kernel.Types.Deferred.t
val
all : 'a
Async_kernel.Types.Deferred.t
list -> 'a
Core_kernel.Std.List.t
Async_kernel.Types.Deferred.t
val
all_unit : unit
t
list -> unit
Async_kernel.Types.Deferred.t