From 493707fd97b7e25a84676e4c8b173eaad38c5821 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 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/doc/api/diagnostics_channel.md b/doc/api/diagnostics_channel.md index 1167a591f353b2..a8217a87ca226e 100644 --- a/doc/api/diagnostics_channel.md +++ b/doc/api/diagnostics_channel.md @@ -267,10 +267,13 @@ 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)`][].