import { WritableIterable } from "https://deno.land/x/proc@0.21.5/legacy/mod.ts";
Invert the normal data flow of an AsyncIterable
, allowing you to push writes on one side and
iterate on the other.
The write()
side must call close()
when all write operations are done.
Methods
private
addEmptyPromiseToQueue(): voidAdd an unresolved promise to the end of the queue.
close(error?: Error): Promise<void>
It is an AsyncIterable<T>
.