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

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

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

Adds a sync or async task to the queue. Always returns a promise.

Type Parameters

TaskResultType

Parameters

fn: Task<TaskResultType>
optional
options: Partial<EnqueueOptionsType> = [UNSUPPORTED]