Skip to content

Commit 29707af

Browse files
targosjasnell
authored andcommitted
doc: add missing doc for readable._destroy
PR-URL: #15316 Fixes: #15291 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Matteo Collina <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Daniel Bevenius <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent a2c335b commit 29707af

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

doc/api/stream.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1601,6 +1601,15 @@ The `readable._read()` method is prefixed with an underscore because it is
16011601
internal to the class that defines it, and should never be called directly by
16021602
user programs.
16031603

1604+
#### readable.\_destroy(err, callback)
1605+
<!-- YAML
1606+
added: v8.0.0
1607+
-->
1608+
1609+
* `err` {Error} An error.
1610+
* `callback` {Function} A callback function that takes an optional error
1611+
argument which is invoked when the readable is destroyed.
1612+
16041613
#### readable.push(chunk[, encoding])
16051614
<!-- YAML
16061615
changes:

0 commit comments

Comments
 (0)