Module Otp_lib.Capped_supervisor

* A Capped_supervisor is a process supervisor which which will limit the * number of active processes to some specified capacity. Specifically, it * allows the definition of a job runner which jobs can be dispatched to, * where dispatched jobs are added to a queue and a pool a processes work * off the queue, with at max job_capacity jobs.

type _ t
val create : ?buffer_capacity:int -> job_capacity:int -> ( 'job -> unit Async_kernel.Deferred.t ) -> 'job t
val dispatch : 'job t -> 'job -> unit