Readonly
bufferShared array buffer for permit synchronization.
Readonly
indexThe buffer index to use for permit synchronization. Defaults to 0.
Readonly
permitsMax number of permits. Defaults to 1.
Readonly
waitThe interval in milliseconds to wait for a permit. Defaults to 200.
Returns the number of permits available for use.
Waits for a lock to be acquired.
Optional
options: AbortOptionsGenerated using TypeDoc
A counting semaphore that uses a shared array buffer for synchronization.