Class Constructor.
Event object to be encapsulated.
Forwards into SubEvent.count of the contained event.
Forwards into SubEvent.maxSubs of the contained event.
Forwards into SubEvent.getStat of the contained event.
Forwards into SubEvent.once of the contained event.
Forwards into SubEvent.subscribe of the contained event.
Forwards into SubEvent.toPromise of the contained event.
Generated using TypeDoc
class EventConsumer<T = unknown, E extends SubEvent<T> = SubEvent<T>>
Encapsulates an event object, in order to hide its methods emit and cancelAll, so the event consumer can only receive the event, but cannot emit it, or cancel other subscriptions.
It is a non-extendable class, with the same signature as SubEvent, minus methods emit and cancelAll.