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

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

Deno Standard Extensions
Latest
method AsyncQueue.prototype.addAll
import { AsyncQueue } from "https://deno.land/x/yxz@0.32.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.