Docs (4.0.0)
App context

class GlobalEmitter

An object that’s used for emitting events.

class GlobalEmitter<TEvent extends ManagedEvent>
extends ManagedObject

Description

Instances of GlobalEmitter can be used as a way to pass messages between application components. This avoids direct dependencies between components, while reusing the existing infrastructure for events.

In particular, emitters are used for handling errors and log messages (in LogWriter), and debugging bindings (see Binding.debug()). Applications can also use their own instances of GlobalEmitter to reduce direct dependencies where needed.

Constructor

Instance Members

Inherited Members