StatefulStream

Node API: Stateful Stream

Inheritors

Properties

Link copied to clipboard
abstract val closed: Boolean

Is true after 'close' has been emitted.

Link copied to clipboard
abstract val destroyed: Boolean

Is true after destroy() has been called.

Functions

Link copied to clipboard
abstract override fun close()
Link copied to clipboard
abstract fun destroy()
abstract fun destroy(error: Throwable)
abstract fun destroy(error: Value)

Destroy the stream. Optionally emit an 'error' event, and emit a 'close' event (unless emitClose is set to false).