awaitNavigateTo

abstract suspend fun awaitNavigateTo(route: NavRoute)
abstract suspend fun awaitNavigateTo(route: ActivityRoute, fallbackRoute: NavRoute? = null)

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

Throws

  • if the next event was not a matching event.