Interface AsyncSubscriberOptions

Options for creating an AsyncSubscriber.

interface AsyncSubscriberOptions {
    bufferSize?: number;
    fcfs?: boolean;
    signal?: AbortSignal;
}

Hierarchy

Properties

bufferSize?: number

Event buffer size. Events may be dropped if buffer size is reached. Defaults to Infinity.

fcfs?: boolean

If true, set to first-come-first-serve mode, which ignores new events if buffer size is reached. Defaults to false, which drops earlier events if buffer size is reached.

signal?: AbortSignal

An optional AbortSignal that can be used to abort an async task.

Generated using TypeDoc