An underlying sink for constructing a WritableStream.
A function that is called after the producer signals, via stream.abort() or writer.abort(), that they wish to abort the stream. It takes as its argument the same value as was passed to those methods by the producer.
A function that is called after the producer signals, via writer.close(), that they are done writing chunks to the stream, and subsequently all queued-up writes have successfully completed.
This function can perform any actions necessary to finalize or flush writes to the underlying sink, and release access to any held resources.
A function that is called immediately during creation of the WritableStream.
A function that is called when a new chunk of data is ready to be written to the underlying sink. The stream implementation guarantees that this function will be called only after previous writes have succeeded, and never before start() has succeeded or after close() or abort() have been called.
This function is used to actually send the data to the resource presented by the underlying sink, for example by calling a lower-level API.
Generated using TypeDoc