Create a subscribable that will apply the specified filter to any listeners added.
function used to filter events
Rest
...args: Argsfiltered AsyncSubscribable
Create an iterator that supports async iteration of events emitted.
Optional
options: EventIteratorOptionsoptions for this iterator
iterable/iterator
Subscribe to this event using the given listener. The listener will be invoked any time the event is emitted. The returned handle can be used to unsubscribe.
listener to subscribe
promise with handle to the subscription, can be used to unsubscribe. Resolves when the subscription is fully registered
Unsubscribe a listener from this handler. The specified listener will no longer be invoked when the event is emitted.
listener to unsubscribe
promise that resolves when the listener is unsubscribed
Create a Subscribable that changes the this argument used for listeners.
what should be treated as this for event listeners
modified AsyncSubscribable
Generated using TypeDoc
Functions used to asynchronously subscribe and unsubscribe to an event.