Package io.v47.events

Class EventsKt

  • All Implemented Interfaces:

    
    public final class EventsKt
    
                        
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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 key
        payload - The payload passed to the listeners
        coroutineContext - The coroutine context for the blocking call
        Since:

        Events 1.0