Emits an event to all subscribers and executes their corresponding event handlers.
The event to emit.
The arguments to pass to the event handlers.
A promise that resolves to a boolean indicating whether the event was successfully emitted.
Emits an event to all subscribers and executes their corresponding event handlers.
The event to emit.
The arguments to pass to the event handlers.
A promise that resolves to the result of the first subscriber's handler, or undefined if no subscribers are present.
Emits an event to all subscribers and executes their corresponding event handlers.
The event to emit.
The arguments to pass to the event handlers.
A promise that resolves to an array of results from all subscribers, or undefined if no subscribers are present.
RPC like emitting of events.