package async_kernel

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

Monad_sequence.S is a generic interface specifying functions that deal with a container and a monad. It is specialized to the Deferred monad and used with various containers in modules Deferred.Array, Deferred.List, Deferred.Queue, and Deferred.Sequence. The Monad_sequence.how type specifies the parallelism of container iterators.

type how = [
  1. | `Parallel
    (*

    like `Max_concurrent_jobs Int.max_value

    *)
  2. | `Sequential
    (*

    like `Max_concurrent_jobs 1

    *)
  3. | `Max_concurrent_jobs of int
]
val sexp_of_how : how -> Ppx_sexp_conv_lib.Sexp.t
module type S = sig ... end
OCaml

Innovation. Community. Security.