@@ -660,6 +660,8 @@ If this is used in the main thread, its value is an empty object.
660660added: REPLACEME
661661-->
662662
663+ > Stability: 1 - Experimental
664+
663665* Returns: {Array<bigint>} A list of notifications registered in the current thread.
664666
665667Return the list of all notifications registered in the current thread via
@@ -671,6 +673,8 @@ Return the list of all notifications registered in the current thread via
671673added: REPLACEME
672674-->
673675
676+ > Stability: 1 - Experimental
677+
674678* `callback` {Function} A function to execute when the notification is received.
675679* Returns: {bigint} The notification ID
676680
@@ -715,6 +719,12 @@ new Worker('process.env.SET_IN_WORKER = "foo"', { eval: true, env: SHARE_ENV })
715719
716720## `worker.sendNotification(id)`
717721
722+ <!-- YAML
723+ added: REPLACEME
724+ -->
725+
726+ > Stability: 1 - Experimental
727+
718728* `id` {bigint}: The notification ID
719729
720730Triggers the notification previously registered via [`worker.registerNotification(callback)`](#workerregisternotificationcallback).
@@ -777,6 +787,8 @@ On the corresponding worker object (if there is any), it is available as [`worke
777787added: REPLACEME
778788-->
779789
790+ > Stability: 1 - Experimental
791+
780792* `id` {number}
781793
782794Unregister a notification previously registered with [`worker.registerNotification(callback)`](#workerregisternotificationcallback).
@@ -790,6 +802,8 @@ worker thread that registered it.
790802added: REPLACEME
791803-->
792804
805+ > Stability: 1 - Experimental
806+
793807Unregister all the notifications previously registered with [`worker.registerNotification(callback)`](#workerregisternotificationcallback).
794808
795809## `worker.workerData`
0 commit comments