await

suspend fun <T : Event> EventWaiterBuilder<T>.await(): T(source)

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

Return

The event specified in EventWaiter.of

Throws

If you the timeout was reached