awaitNavigateBackTo

abstract suspend fun <T : NavRoute> awaitNavigateBackTo(popUpTo: KClass<T>, inclusive: Boolean)

Assert that the next event received was a "back to" navigation event with matching parameters. This function will suspend if no events have been received.

Throws

  • if the next event was not a matching event.