interface WritableStreamDefaultWriter
A writer that pushes chunks to a WritableStream.
Index
Properties
Methods
abort(reason)
Aborts the stream.
abort(reason?: any): Promise<void>;
| Name | Type | Description |
|---|---|---|
| optional reason | any | |
| Return Value | Promise<void> |
close()
Closes the stream.
close(): Promise<void>;
| Name | Type | Description |
|---|---|---|
| Return Value | Promise<void> |
closed Promise<void> read-only
Resolves when the stream closes or rejects on error.
ready Promise<void> read-only
Resolves when the stream is ready to accept more data.
releaseLock()
Releases the writer's lock on the stream.
releaseLock(): void;
write(chunk)
Writes a chunk of byte data.
write(chunk: buffer.IOBuffer | ArrayBuffer | ArrayBufferView): Promise<void>;
| Name | Type | Description |
|---|---|---|
| chunk | buffer.IOBuffer | ArrayBuffer | ArrayBufferView | |
| Return Value | Promise<void> |