Tuple type representing the arguments that will be passed to subscriber functions.
Protected
publishRegisters a subscriber function to be called when the event is emitted.
If the subscriber is already registered, this method has no effect.
The subscriber function to call when the event is emitted.
Optional
options: SubscribableSubscribeOptionsOptional settings for the subscription.
A function that can be called to unsubscribe the subscriber, or null if the subscriber was already registered.
Wait for the next event to be triggered.
Optional
signal: null | AbortSignalOptional abort signal to cancel the wait.
A promise that resolves when the event is triggered.
An event that can have subscribers and can be waited on.