Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/yxz/async/queue.ts>Options

Deno Standard Extensions
Go to Latest
interface Options
implements TimeoutOptions
import { type Options } from "https://deno.land/x/yxz@0.17.0/async/queue.ts";

Type Parameters

QueueType extends Queue<RunFunction, QueueOptions>
QueueOptions extends QueueAddOptions

Properties

readonly
optional
concurrency: number

Concurrency limit. Minimum: 1.

readonly
optional
autoStart: boolean

Whether queue tasks within concurrency limit, are auto-executed as soon as they're added.

readonly
optional
queueClass: new () => QueueType

Class with a enqueue and dequeue method, and a size getter. See the Custom QueueClass section.

readonly
optional
intervalCap: number

The max number of runs in the given interval of time. Minimum: 1.

readonly
optional
interval: number

The length of time in milliseconds before the interval count resets. Must be finite. Minimum: 0.

readonly
optional
carryoverConcurrencyCount: boolean

Whether the task must finish in the given interval or will be carried over into the next interval count.