include Core_kernel.Monad.Infix with type 'a t := 'a Async_kernel.Deferred.t
val (>>=) : 'a Async_kernel.Deferred.t -> ('a -> 'a Async_kernel.Deferred.t) -> 'a Async_kernel.Deferred.t
t >>= f
returns a computation that sequences the computations represented by two monad elements. The resulting computation first does t
to yield a value v
, and then runs the computation returned by f v
.
val (>>|) : 'a Async_kernel.Deferred.t -> ('a -> 'b) -> 'a Async_kernel.Deferred.t
t >>| f
is t >>= (fun a -> return (f a))
.
val (>>>) : 'a Async_kernel.Deferred.t -> ('a -> unit) -> unit