Semaphore
Index
Constructors
constructor
Parameters
__namedParameters: SemaphoreOptions
Returns default
Accessors
remaining
Returns number
running
Returns number
Methods
acquire
Returns Promise<() => void>
run
Type parameters
- T
Parameters
fn: () => T | Promise<T>
Returns Promise<T>