suspend fun waitForEvent(event: String): Any
Waits for a certain event to occurs suspending the current coroutine until the event is triggered.
event
- The name of the event to be triggered.
Returns
The result value from the event, that can assume any kind of type.