atvik
    Preparing search index...

    Interface AsyncSubscribableOptions<This, Args>

    Options for createAsyncSubscribable.

    interface AsyncSubscribableOptions<This, Args extends unknown[]> {
        defaultErrorStrategy?: ErrorStrategy;
        defaultIterator?: EventIteratorOptions;
        subscribe: AsyncSubscribeFunction<This, Args>;
        unsubscribe: AsyncUnsubscribeFunction<This, Args>;
    }

    Type Parameters

    • This
    • Args extends unknown[]
    Index
    defaultErrorStrategy?: ErrorStrategy

    Default error strategy to use.

    defaultIterator?: EventIteratorOptions

    Options to apply to iterators created by this subscribable.

    Function used to subscribe a listener.

    Function used to unsubscribe a listener.