package async_kernel

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

Module Eager_deferred.UseSource

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

Sourcemodule Deferred : sig ... end
include module type of Deferred.Let_syntax
Sourceval return : 'a -> 'a Deferred.t
Sourceval (>>=) : 'a Deferred.t -> ('a -> 'b Deferred.t) -> 'b 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.

Sourceval (>>|) : 'a Deferred.t -> ('a -> 'b) -> 'b Deferred.t

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

Sourcemodule Let_syntax : sig ... end
Sourceval upon : 'a Async_kernel.Deferred.t -> ('a -> unit) -> unit
Sourceval (>>>) : 'a Async_kernel.Deferred.t -> ('a -> unit) -> unit
OCaml

Innovation. Community. Security.