Interface SharedCountingSemaphoreOptions

Options for creating a SharedCountingSemaphore.

interface SharedCountingSemaphoreOptions {
    buffer?: Int32Array;
    index?: number;
    permits?: number;
    waitInterval?: number;
}

Implemented by

Properties

buffer?: Int32Array

Shared array buffer for permit synchronization.

index?: number

The buffer index to use for permit synchronization. Defaults to 0.

permits?: number

Max number of permits. Defaults to 1.

waitInterval?: number

The interval in milliseconds to wait for a permit. Defaults to 200.

Generated using TypeDoc