A simple counting semaphore that limits access to resources with a fixed number of permits.

Implements

Constructors

Properties

leased: number = 0
onRelease?: (() => void)

Type declaration

    • (): void
    • Returns void

permits: number = 1

Total number of permits.

released?: Promise<void>

Accessors

Methods

Generated using TypeDoc