package lsp

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

Module Fiber.ThrottleSource

Limit the number of jobs

Sourcetype t
Sourceval create : int -> t

create n creates a throttler that allows to run n jobs at once

Sourceval size : t -> int

How many jobs can run at the same time

Sourceval resize : t -> int -> unit t

Change the number of jobs that can run at once

Sourceval run : t -> f:(unit -> 'a t) -> 'a t

Execute a fiber, waiting if too many jobs are already running

Sourceval running : t -> int

Return the number of jobs currently running

OCaml

Innovation. Community. Security.