Skip to content

Commit

Permalink
stream: added note about undocumented API
Browse files Browse the repository at this point in the history
  • Loading branch information
ronag committed Oct 1, 2019
1 parent f663b31 commit 9fbf8a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/internal/streams/destroy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ function needError(stream, err) {
return true;
}

// Undocumented cb() API, needed for core, not for public API
// Undocumented cb() API, needed for core, not for public API.
// cb() well be invoked synchronously if _destroy is synchronous.
function destroy(err, cb) {
const r = this._readableState;
const w = this._writableState;
Expand Down

0 comments on commit 9fbf8a1

Please sign in to comment.