class default
extends Stream
import { default } from "https://deno.land/std@0.116.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.
Constructors
new
default(options?: WritableOptions)Properties
_writableState: WritableState
optional
_writev: writeV | nullMethods
_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): this
end(chunk: any, cb?: () => void): this
end(): this
end()
pipe(dest: Writable): Writable
setDefaultEncoding(encoding: string)
uncork()
write(chunk: any, cb?: (error: Error | null | undefined) => void): boolean
write(): boolean
write()
chunk: any,
x?: WritableEncodings | null | ((error: Error | null | undefined) => void),
y?: ((error: Error | null | undefined) => void),
[captureRejectionSymbol](err?: Error)