Private
_callbacksPrivate
_nameStart listening events.
Returns destructor function.
Removes the first found listener callback for eventName
Returns a Promise that is resolved when the specified event is triggered.
A Promise that is resolved when the specified event is triggered, or rejected with a timeout error if the event is not triggered within the specified timeout.
The name of the event to wait for.
The maximum amount of time (in milliseconds) to wait for the event before timing out.
Generated using TypeDoc
This is a simple observer implementation for implementing synchronous in-process events for a local service.
You can use it like this: