package async_kernel

  1. Overview
  2. Docs
Monadic concurrency library

Install

Dune Dependency

Authors

Maintainers

Sources

async_kernel-v0.15.0.tar.gz
sha256=30753e014bb0b127ee59f10b1073b8ae476468fb2f07dc8c99dbe2ef312fc696

doc/async_kernel.limiter_async/Limiter_async/Expert/index.html

Module Limiter_async.ExpertSource

Sourceval kill : t -> unit

kills t, which aborts all enqueued jobs that haven't started and all jobs enqueued in the future. If t has already been killed, then calling kill t has no effect. Note that kill does not affect currently running jobs in any way.

Sourceval is_dead : t -> bool

is_dead t returns true if t was killed, either by kill or by an unhandled exception in a job.

Sourceval cost_of_jobs_waiting_to_start : t -> int

returns the total cost of all jobs that have been enqueued but have not yet started.

Sourceval to_jane_limiter : t -> Limiter.t

returns the underlying limiter. It is an error to do anything with the limiter that isn't a read-only operation.

OCaml

Innovation. Community. Security.