Skip to content

Commit abbbcd1

Browse files
committed
doc: add return value for DC unsubscribe
1 parent 6d07e4d commit abbbcd1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/api/diagnostics_channel.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,11 @@ added:
267267
changes:
268268
- version: REPLACEME
269269
pr-url: https://github.com/nodejs/node/pull/40433
270-
description: Added to channels without subscribers.
270+
description: Added return value. Added to channels without subscribers.
271271
-->
272272

273273
* `onMessage` {Function} The previous subscribed handler to remove
274+
* Returns: {boolean} `true` if the handler was found, `false` otherwise.
274275

275276
Remove a message handler previously registered to this channel with
276277
[`channel.subscribe(onMessage)`][].

0 commit comments

Comments
 (0)