Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/rimbu/channel/custom/sync/semaphore.ts>Semaphore.Constructors

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
interface Semaphore.Constructors
import { type Semaphore } from "https://deno.land/x/rimbu@1.2.1/channel/custom/sync/semaphore.ts";
const { Constructors } = Semaphore;

Defines the static Semaphore API.

Methods

getter
Error(): SemaphoreError

Returns the available Semaphore errors and utilities.

create(options: { maxSize: number; }): Semaphore

Returns a new Semaphore instance with the given configuration.