read

open override fun read(size: Number): Any(source)

Calls readable.destroy() with an AbortError and returns a promise that fulfills when the stream is finished.

Since

v20.4.0