awaitNavigationResult

abstract suspend fun <O : Parcelable> awaitNavigationResult(key: NavigationResultRequest.Key<O>, result: O)

Assert that the next event received was a navigation result. This function will suspend if no events have been received.

Throws

  • if the next event was not a matching event.