Skip to main content
Deno 2 is finally here 🎉️
Learn more
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.2.0/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.