Prelude API
    Preparing search index...

    Type Alias SerialQueue<Args, R>

    type SerialQueue<Args extends unknown[], R> = {
        drained?: () => void;
        entries: Entry<Args, R>[];
        f: (...args: Args) => Promise<R>;
        running?: Entry<Args, R>;
    }

    Type Parameters

    • Args extends unknown[]
    • R
    Index
    drained?: () => void

    Called after the last entry settled (or after rejectAll). Errors thrown by the hook are rethrown asynchronously as uncaught exceptions; they never affect the entries or the queue.

    entries: Entry<Args, R>[]
    f: (...args: Args) => Promise<R>
    running?: Entry<Args, R>

    Entry whose f is currently in flight, if any.