package lsp

  1. Overview
  2. Docs
LSP protocol implementation in OCaml

Install

Dune Dependency

Authors

Maintainers

Sources

jsonrpc-1.3.0.tbz
sha256=598e27258e4749b6e2511e2c5efe00d16f0965806296e808d202cd614d655fba
sha512=febe80f8a88fac7683cafbd045dceee4869beda1f250b78a1d94d3ad19e746388d24869e805abcb2f33f93687508d65db19a38424c1059670915c050b4f6dbb9

doc/lsp.fiber/Fiber/Throttle/index.html

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.