From abbbcd1d89f5a6894a5d2a8188f3026480adadc8 Mon Sep 17 00:00:00 2001 From: simon-id Date: Wed, 13 Oct 2021 12:57:46 +0200 Subject: [PATCH] doc: add return value for DC unsubscribe --- doc/api/diagnostics_channel.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/api/diagnostics_channel.md b/doc/api/diagnostics_channel.md index 1167a591f353b2..47df6a42994257 100644 --- a/doc/api/diagnostics_channel.md +++ b/doc/api/diagnostics_channel.md @@ -267,10 +267,11 @@ added: changes: - version: REPLACEME pr-url: https://github.com/nodejs/node/pull/40433 - description: Added to channels without subscribers. + description: Added return value. Added to channels without subscribers. --> * `onMessage` {Function} The previous subscribed handler to remove +* Returns: {boolean} `true` if the handler was found, `false` otherwise. Remove a message handler previously registered to this channel with [`channel.subscribe(onMessage)`][].