end of stream

The point where a stream has no more data: a Readable emits end, and a Writable emits finish after end() has been called and all data flushed.

In more detail

A custom Readable signals it by calling this.push(null). Writing after end() is an error.

Related terms

Taught in

References