Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/yxz/async/queue.ts>AsyncQueue#addAll

Deno Standard Extensions
Go to Latest
method AsyncQueue.prototype.addAll
import { AsyncQueue } from "https://deno.land/x/yxz@0.17.0/async/queue.ts";

Same as .add(), but accepts an array of sync or async functions.

Type Parameters

TaskResultsType

Parameters

functions: ReadonlyArray<Task<TaskResultsType>>
optional
options: EnqueueOptionsType

Returns

Promise<TaskResultsType[]>

A promise that resolves when all functions are resolved.