Skip to main content
Module

x/async/mod.ts>Queue#pop

🦕 Asynchronous primitive modules for Deno.
Latest
method Queue.prototype.pop
import { Queue } from "https://deno.land/x/async@v2.1.0/mod.ts";

Removes the next item from the queue, optionally waiting if the queue is currently empty.

Parameters

optional
unnamed 0: WaitOptions = [UNSUPPORTED]

Optional parameters to pass to the wait operation.

Returns

Promise<T>

A promise that resolves to the next item in the queue.