import { AsyncQueue } from "https://deno.land/x/yxz@0.17.0/async/queue.ts";
The difference with .onEmpty
is that .onIdle
guarantees that all work from the queue has finished. .onEmpty
merely signals that the queue is empty, but it could mean that some promises haven't completed yet