Skip to content

Commit

Permalink
stream: add comment about undocumented API
Browse files Browse the repository at this point in the history
PR-URL: #29805
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Minwoo Jung <minwoo@nodesource.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Masashi Hirano <shisama07@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
  • Loading branch information
ronag authored and BridgeAR committed Oct 9, 2019
1 parent ab4c53e commit 320f649
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/internal/streams/destroy.js
@@ -1,6 +1,7 @@
'use strict';

// Undocumented cb() API, needed for core, not for public API
// Undocumented cb() API, needed for core, not for public API.
// The cb() will be invoked synchronously if _destroy is synchronous.
function destroy(err, cb) {
const readableDestroyed = this._readableState &&
this._readableState.destroyed;
Expand Down

0 comments on commit 320f649

Please sign in to comment.