Interface QueueOptions<TInput, TOutput, TProgress>

Type Parameters

  • TInput

  • TOutput

  • TProgress

Hierarchy

  • QueueOptions

Properties

maxCompletedTaskMemory: number

The maximum number of completed tasks that should be saved for diagnostic purposes, defaults to 100.

maxConcurrentTasks: number

The maximum number of tasks that can be active at once, defaults to 1.

maxQueuedTasks: number

The maximum number of tasks that can be queued before throwing, defaults to Infinity.

Methods

  • Internal

    The function to use to acquire the current UNIX timestamp.

    Returns number

  • The function to process tasks in the queue.

    Parameters

    • ref: Pick<TaskRef<TInput, TOutput, TProgress>, "id" | "signal" | "request" | "emit">

    Returns Promise<TOutput>

Generated using TypeDoc