observe
Adds the passed consumer to the subscribers of the event of the passed type.
Parameters
type
the type of the event message to be received by the consumer
consumer
the consumer
<E>
the type of the event
Adds the passed event consumer to the subscribers of the event of the passed type.
Parameters
type
the type of the event message to be received by the consumer
consumer
the consumer of the event message and its context
<E>
the type of the event