package async_kernel

  1. Overview
  2. Docs
Monadic concurrency library

Install

dune-project
 Dependency

Authors

Maintainers

Sources

async_kernel-v0.16.0.tar.gz
sha256=0eda59386235e967698834d71cb8924d7b466bc4fcbf26ae72797ad05ca6f8a9

doc/async_kernel/Async_kernel/Monad_sequence/index.html

Module Async_kernel.Monad_sequenceSource

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.

Sourcetype how = [
  1. | `Parallel
    (*

    like `Max_concurrent_jobs Int.max_value

    *)
  2. | `Sequential
    (*

    `Sequential is often but not always the same as `Max_concurrent_jobs 1 (for example, they differ in the Or_error monad).

    *)
  3. | `Max_concurrent_jobs of int
]
Sourceval sexp_of_how : how -> Sexplib0.Sexp.t
Sourcemodule type S = sig ... end