@vgerbot/async
    Preparing search index...

    Type Alias QueueWorker<T, R>

    QueueWorker: (task: T, token: CancellableToken) => Promise<R>

    Async worker signature used by the queue.

    The queue invokes this worker for each enqueued task. The provided token is linked to queue cancellation, so a cancelled queue can interrupt running work if the worker cooperates with token cancellation utilities.

    Type Parameters

    • T

      Input task payload type.

    • R

      Worker result type.

    Type Declaration