Class TaskQueue<TInput, TOutput, TProgress>

Type Parameters

Hierarchy

  • EventEmitter
    • TaskQueue

Constructors

Methods

  • Immediately aborts all currently running tasks. Once a queue has been drained it cannot be used again.

    Returns Promise<void>

  • Enqueues a new task to be executed by the queue. This method is synchronous and does not await completion of the task. Use the taskRef.completed promise to await completion.

    Parameters

    Returns TaskRef<TInput, TOutput, TProgress>

  • Pauses execution of new tasks in the queue, but allows existing tasks to complete.

    Returns void

  • Awaits for tasks to complete. If new tasks are queued while waiting for completion, those tasks will be awaited as well.

    Returns Promise<void>

Generated using TypeDoc