Skip to content

Commit 320f649

Browse files
ronagBridgeAR
authored andcommitted
stream: add comment about undocumented API
PR-URL: #29805 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Minwoo Jung <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Masashi Hirano <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent ab4c53e commit 320f649

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/internal/streams/destroy.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
'use strict';
22

3-
// Undocumented cb() API, needed for core, not for public API
3+
// Undocumented cb() API, needed for core, not for public API.
4+
// The cb() will be invoked synchronously if _destroy is synchronous.
45
function destroy(err, cb) {
56
const readableDestroyed = this._readableState &&
67
this._readableState.destroyed;

0 commit comments

Comments
 (0)