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

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

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

Can be called multiple times. Useful if you for example add additional items at a later time

Returns

Promise<void>

A promise that settles when the queue becomes empty.