Package-level declarations

Types

Link copied to clipboard
fun interface CompletedFutureEvent<T : Event>

Functional interface for EventWaiterBuilder.setOnComplete, provides a Future and either the event or an exception.

Link copied to clipboard
@InterfacedService(acceptMultiple = false)
interface EventWaiter

Lets you run code when receiving a specific event, while not blocking threads nor having listeners everywhere, and being able to capture existing variables.

Link copied to clipboard

Builder for EventWaiter

Functions

Link copied to clipboard
suspend fun <T : Event> EventWaiterBuilder<T>.await(): T

Suspends until the event waiter receives an event of the specified type, and all preconditions have passed.