package core_kernel

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

Install

Dune Dependency

Authors

Maintainers

Sources

core_kernel-v0.16.0.tar.gz
sha256=e37370bad978cfb71fdaf2b1a25ab1506b98ef0b91e0dbd189ffd9d853245ce2

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.