ConcurrentEvent <Args, Scope>
Hierarchy
- BaseEvent<Promise<unknown>, Args, Scope>
- ConcurrentEvent
Index
Constructors
Properties
Methods
Constructors
constructor
Type parameters
- Args: unknown[]
- Scope: string = string
Properties
listeners
name
Methods
clearListeners
emit
Asynchronously execute listeners for with the defined arguments. Will return a promise with an array of each listener result.
getListeners
Return a set of listeners for a specific event scope.
getScopes
Return a list of all scopes with listeners.
listen
Register a listener to the event.
once
Register a listener to the event that only triggers once.
unlisten
Remove a listener from the event.
Remove all listeners from the event.