import { type Writable } from "https://deno.land/x/proc@0.20.22/legacy/examples/deps.ts";
A writable.
Methods
Close the writable. This must be called.
Once closed, subsequent calls to write(...)
will throw an error.
It is safe to call close()
multiple times.
If an error is passed on close, it is propagated forward.
The error (or undefined
) passed on the first call will be honored.
Error conditions passed on subsequent calls to close
will be
ignored.
write(item: T): Promise<void>
Write an item.