A queue of async tasks.

Hierarchy

Implements

Constructors

Properties

_pending: number = 0
lock: Lock = ...

Lock to control task execution concurrency.

paused: boolean
queue: Queue<RunnableTask> = []

Underlying task queue.

queued: number = 0

Accessors

Methods

  • Returns Promise<void>

  • Tries to poll the top queue task and waits for it to complete if not throttled.

    Returns undefined | Promise<void>

Generated using TypeDoc