Constructors an Event Emitter, with a potential reference to a parent Emitter.
When emitting and event, the even is first emitted from itself, and then passed
to the parent, unless no parent is present, or TcEvent.stopPropagation()
was
called
The parent Emitter of this Emitter
This symbol shall be used to install a listener for only monitoring 'error'
events. Listeners installed using this symbol are called before the regular
'error'
listeners are called.
Installing a listener using this symbol does not change the behavior once an
'error'
event is emitted, therefore the process will still crash if no
regular 'error'
listener is installed.
Emits an event of eventName
with data e
and if parent is present
will propagated that event to it, unless stopped
The event name to emit
The Data associated with this event
Generated using TypeDoc
Base Emitter Class for all Components of
tc-context
library, which can raise and event.TcEmitters
store a reference to their parents, which allows them to propagate and event to the top levels of the module, which is theTcContext
object