doc: document `error` event is optionally emitted after `.destroy()`
`error` event on each kind of stream is optionally emitted when `.destroy()` method is called. It depends on `._destroy()` implementation. In default implementation this event will no be fired unless `error` parameter has been provided. It was already mentioned for `writable.destroy([error])`, so I just copied same sentence for the other streams. PR-URL: https://github.com/nodejs/node/pull/26589 Reviewed-By:Matteo Collina <matteo.collina@gmail.com>
parent
4e08daab
Please register or sign in to comment