unpipe

abstract fun unpipe()

The readable.unpipe() method detaches a Writable stream previously attached using readable.pipe(). The method will remove the destination from the list of destinations to which data will be written.

If no destination is specified, then all attached Writable streams will be detached.


abstract fun unpipe(destination: Writable)

The readable.unpipe() method detaches a Writable stream previously attached using readable.pipe(). The method will remove the destination from the list of destinations to which data will be written.

If no destination is specified, then all attached Writable streams will be detached.

Parameters

destination

The destination to unpipe.