UNPKG

dahlia-concurrency

Version:

High-level concurrency primitives and patterns for Node.js using worker_threads (queues, semaphore, mutex, worker pool, scheduler, and more)

10 lines (6 loc) 173 B
export class CountingSemaphore { private counter: Int32Array; constructor(sharedBuffer: SharedArrayBuffer, threads?: number); acquire(): void; release(): void; }