Module Use.Deferred
type 'a t= 'a Async_kernel.Deferred.t
include Eager_deferred__.Eager_deferred1
include sig ... end with type 'a t := 'a Async_kernel.Deferred.t
include Async_kernel.Invariant.S1 with type 'a t := 'a t
val invariant : 'a Base__.Invariant_intf.inv -> 'a t Base__.Invariant_intf.inv
include Core_kernel.Monad with type 'a t := 'a t
include Base__.Monad_intf.S_without_syntax with type 'a t := 'a t
module Monad_infix : Base__.Monad_intf.Infix with type 'a t := 'a tval return : 'a -> 'a treturn vreturns the (trivial) computation that returns v.
val ignore_m : 'a t -> unit tignore_m tismap t ~f:(fun _ -> ()).ignore_mused to be calledignore, but we decided that was a bad name, because it shadowed the widely usedCaml.ignore. Some monads still dolet ignore = ignore_mfor historical reasons.
module Infix : sig ... endval any : 'a t list -> 'a tval any_unit : unit t list -> unit tval both : 'a t -> 'b t -> ('a * 'b) tval create : ('a Async_kernel.Ivar.t -> unit) -> 'a tval don't_wait_for : unit t -> unitval ignore : _ t -> unit tval is_determined : 'a t -> boolval never : unit -> _ tval ok : 'a t -> ('a, _) Core_kernel.Result.t tval peek : 'a t -> 'a optionval unit : unit tval upon : 'a t -> ('a -> unit) -> unitval value_exn : 'a t -> 'aval repeat_until_finished : 'state -> ('state -> [ `Repeat of 'state | `Finished of 'result ] t) -> 'result t
module List : Async_kernel.Monad_sequence.S with type 'a monad := 'a t with type 'a t := 'a listmodule Or_error : module type of Eager_deferred__.Eager_deferred_or_error