package core_kernel

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

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.

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.

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.

type t = private Limiter.limiter
val create_exn : now:Time_ns.t -> max_concurrent_jobs:Base.Int.t -> t
val try_start_job : t -> now:Time_ns.t -> [ `Start | `Max_concurrent_jobs_running ]
val finish_job : t -> now:Time_ns.t -> Base.Unit.t
OCaml

Innovation. Community. Security.