Package io.v47.events
Class EventsKt
-
- All Implemented Interfaces:
public final class EventsKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> UnitemitBlocking(EventEmitter $self, EventKey<T> key, T payload, CoroutineContext coroutineContext)Emits the event identified by the specified key with the payload in a blocking fashion. -
-
Method Detail
-
emitBlocking
final static <T extends Any> Unit emitBlocking(EventEmitter $self, EventKey<T> key, T payload, CoroutineContext coroutineContext)
Emits the event identified by the specified key with the payload in a blocking fashion. This uses the specified coroutine context.
- Parameters:
key- The event keypayload- The payload passed to the listenerscoroutineContext- The coroutine context for the blocking call- Since:
Events 1.0
-
-
-
-