import { default } from "https://dotland.deno.dev/std@0.92.0/node/_stream/writable.ts";
A bit simpler than readable streams.
Implement an async ._write(chunk, encoding, cb)
, and it'll handle all
the drain event emission and buffering.
Methods
_destroy(err: Error | null, cb: (error?: Error | null) => void)
_write(): void
chunk: any,
encoding: string,
cb: (error?: Error | null) => void,
cork()
destroy(err?: Error | null, cb?: () => void)
end(cb?: () => void): void
end(chunk: any, cb?: () => void): void
end(): void
chunk: any,
encoding: WritableEncodings,
cb?: () => void,
pipe(dest: Writable): Writable
setDefaultEncoding(encoding: string)
uncork()
write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean
write(): boolean
chunk: any,
encoding: WritableEncodings | null,
cb?: (error: Error | null | undefined) => void,
[captureRejectionSymbol](err?: Error)