Skip to content

Commit

Permalink
doc: add return value for DC unsubscribe
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-id authored Oct 13, 2021
1 parent 6d07e4d commit 493707f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion doc/api/diagnostics_channel.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)`][].
Expand Down

0 comments on commit 493707f

Please sign in to comment.