ripe / com.ripe.android.base / Observable / waitForEvent

waitForEvent

suspend fun waitForEvent(event: String): Any

Waits for a certain event to occurs suspending the current coroutine until the event is triggered.

Parameters

event - The name of the event to be triggered.

Returns
The result value from the event, that can assume any kind of type.