Forwards into SubEvent.count of the contained event.
Forwards into SubEvent.maxSubs of the contained event.
Forwards into SubEvent.getStat of the contained event.
Optionaloptions: { OptionalminForwards into SubEvent.once of the contained event.
Optionaloptions: ISubOptionsForwards into SubEvent.subscribe of the contained event.
Optionaloptions: ISubOptionsForwards into SubEvent.toPromise of the contained event.
Optionaloptions: { Optionalname?: stringOptionaltimeout?: number
Encapsulates an event object, in order to hide its methods SubEvent.emit and SubEvent.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 emit and cancelAll.