Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rimbu/channel/custom/index.ts>SemaphoreError.SemaphoreError

Rimbu is a TypeScript library focused on immutable, performant, and type-safe collections and other tools.
Go to Latest
class SemaphoreError.SemaphoreError
Re-export
Abstract
import { SemaphoreError } from "https://deno.land/x/rimbu@1.1.0/channel/custom/index.ts";
const { SemaphoreError } = SemaphoreError;

The abstract base class/type for Semaphore Errors.

Constructors

new
InvalidConfigError(message: string)

Constructors

new
InsufficientCapacityError()

Constructors

new
CapacityUnderflowError()
function SemaphoreError.SemaphoreError
Re-export
import { SemaphoreError } from "https://deno.land/x/rimbu@1.1.0/channel/custom/index.ts";
const { SemaphoreError } = SemaphoreError;

Returns true if the given object is an instance of a SemaphoreError.

Parameters

obj: any
  • the value to test