Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/rimbu/channel/mod.ts>Semaphore.Constructors

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Latest
interface Semaphore.Constructors
import { type Semaphore } from "https://deno.land/x/rimbu@1.2.1/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.