Skip to main content
Module

x/rimbu/channel/mod.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.0.2/channel/mod.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.