end
Calling the writable.end()
method signals that no more data will be written to the Writable. The optional chunk
and encoding
arguments allow one final additional chunk of data to be written immediately before closing the stream.
Calling the write method after calling stream.end()
will raise an error.
Calling the writable.end()
method signals that no more data will be written to the Writable. The optional chunk and encoding arguments allow one final additional chunk of data to be written immediately before closing the stream.
Calling the write method after calling stream.end()
will raise an error.
Parameters
The final chunk of data to write to the stream
The encoding of the chunk
Calling the writable.end()
method signals that no more data will be written to the Writable. The optional chunk and encoding arguments allow one final additional chunk of data to be written immediately before closing the stream.
Calling the write method after calling stream.end()
will raise an error.
Parameters
The final chunk of data to write to the stream
The encoding of the chunk
The callback to call once the data has been written and flushed