package async_kernel

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type

Intended usage is to open Use_eager_deferred to shadow operations from the non-eager world and rebind them to their eager counterparts.

module Deferred : sig ... end
include Core_kernel.Monad.Infix with type 'a t := 'a Async_kernel__.Types.Deferred.t
include module type of struct include Eager_deferred.Let_syntax end
val return : 'a -> 'a Async_kernel__.Types.Deferred.t
val (>>=) : 'a Async_kernel__.Types.Deferred.t -> ('a -> 'b Async_kernel__.Types.Deferred.t) -> 'b Async_kernel__.Types.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__.Types.Deferred.t -> ('a -> 'b) -> 'b Async_kernel__.Types.Deferred.t

t >>| f is t >>= (fun a -> return (f a)).

val upon : 'a Async_kernel__.Types.Deferred.t -> ('a -> unit) -> unit
val (>>>) : 'a Async_kernel__.Types.Deferred.t -> ('a -> unit) -> unit