doc: add missing doc for readable._destroy

PR-URL: https://github.com/nodejs/node/pull/15316
Fixes: https://github.com/nodejs/node/issues/15291
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Matteo Collina <matteo.collina@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
This commit is contained in:
Michaël Zasso authored and Ruben Bridgewater committed 2017-09-13 17:04:10 -03:00
1 parent eb4940e2d2
commit 99a779947c
1 file changed
+9
+9
View File
@@ -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)
<!-- YAML
added: v8.0.0
-->
* `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])
<!-- YAML
changes: