Interface EventDispatcher
-
- All Implemented Interfaces:
public interface EventDispatcherAll events will be caught and forwarded to EventDispatcher. Invocation of Event.broadcast and EventDispatcher.broadcast are effectively equal.
-
-
Method Summary
Modifier and Type Method Description abstract Unitbroadcast(Event event)Broadcast an event using EventChannel. abstract EventBroadcastJobbroadcastAsync(Event event, CoroutineContext additionalContext)abstract EventBroadcastJobbroadcastAsync(CoroutineContext additionalContext, SuspendFunction0<Event> event)abstract BooleanisActive()-
-
Method Detail
-
broadcast
abstract Unit broadcast(Event event)
Broadcast an event using EventChannel. It's safe to use this function internally.
-
broadcastAsync
abstract EventBroadcastJob broadcastAsync(Event event, CoroutineContext additionalContext)
-
broadcastAsync
abstract EventBroadcastJob broadcastAsync(CoroutineContext additionalContext, SuspendFunction0<Event> event)
-
-
-
-