package core_kernel

  1. Overview
  2. Docs
Industrial strength alternative to OCaml's standard library

Install

Dune Dependency

Authors

Maintainers

Sources

v0.17.0.tar.gz
sha256=fd2b8c6715794df7a810a62b226f53720f211cd344b4afc9fab0498796d6b466

doc/core_kernel.limiter/Limiter/Throttle/index.html

Module Limiter.ThrottleSource

Implements a basic throttle. Users of the throttle must successfully call start_job before beginning work and must call finish_job once, and only once, when a job is completed.

Sourcetype t = private limiter
Sourceval sexp_of_t : t -> Sexplib0.Sexp.t
Sourceval create_exn : now:Core.Time_ns.t -> max_concurrent_jobs:int -> t
Sourceval try_start_job : t -> now:Core.Time_ns.t -> [ `Start | `Max_concurrent_jobs_running ]
Sourceval finish_job : t -> now:Core.Time_ns.t -> unit
OCaml

Innovation. Community. Security.