Skip to main content
Module

x/async/stack.ts>Stack#pop

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

Removes the next item from the stack, optionally waiting if the stack 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 stack.