Utils
EventPayload
When an EventEmitterable triggers a Listener, the callback always ahas one additional argument passed, which is an EventPayload.
Extended by
Type parameters
Type parameter |
---|
T |
Constructors
new EventPayload()
Create a new EventPayload for emitter
with the listener
and for filter
.
Parameters
Parameter | Type |
---|---|
emitter | EventEmitterable <T > |
listener | null | Listener |
filter | T |
Returns
EventPayload
<T
>
Source
Properties
Property | Modifier | Type | Description |
---|---|---|---|
emitter | readonly | EventEmitterable <T > | The EventEmitterable. |
filter | readonly | T | The event filter. |
Methods
removeListener()
Unregister the triggered listener for future events.
Returns
Promise
<void
>
Source
Was this page helpful?