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

x/async/queue.ts>Queue#pop

🦕 Asynchronous primitive modules loosely port from Python's asyncio for Deno.
Go to Latest
method Queue.prototype.pop
import { Queue } from "https://deno.land/x/async@v2.0.0/queue.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.