diff --git a/doc/api/stream.md b/doc/api/stream.md index f8248aae40f..8aaa4ff2e65 100644 --- a/doc/api/stream.md +++ b/doc/api/stream.md @@ -1601,6 +1601,15 @@ The `readable._read()` method is prefixed with an underscore because it is internal to the class that defines it, and should never be called directly by user programs. +#### readable.\_destroy(err, callback) + + +* `err` {Error} An error. +* `callback` {Function} A callback function that takes an optional error + argument which is invoked when the readable is destroyed. + #### readable.push(chunk[, encoding])