From 320f649539d786814352f49859334df71aa8f9d6 Mon Sep 17 00:00:00 2001 From: Robert Nagy Date: Tue, 1 Oct 2019 20:44:02 +0200 Subject: [PATCH] stream: add comment about undocumented API PR-URL: https://github.com/nodejs/node/pull/29805 Reviewed-By: Anna Henningsen Reviewed-By: Ruben Bridgewater Reviewed-By: Minwoo Jung Reviewed-By: Trivikram Kamat Reviewed-By: Luigi Pinca Reviewed-By: Masashi Hirano Reviewed-By: Colin Ihrig --- lib/internal/streams/destroy.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/internal/streams/destroy.js b/lib/internal/streams/destroy.js index 200c75459ad56d..e59a61de1feef5 100644 --- a/lib/internal/streams/destroy.js +++ b/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;