Companion

Functions

Link copied to clipboard
fun <T> onlySync(): Event<T>

Creates a classic Event without async listener invocation, accepting events of the type T. The scope S passed to this function determines what kind of actions can be performed in response to the event.

Link copied to clipboard
fun <T> syncAsync(clientSide: Boolean = false): AsyncEvent<T>

Creates an AsyncEvent with synchronous and asynchronous listener invocation, accepting events of the type T. The scope S passed to this function determines what kind of actions can be performed in response to the event.