turbine / app.cash.turbine / FlowTurbine / expectComplete

expectComplete

abstract suspend fun expectComplete(): Unit

Assert that the next event received was the flow completing. If no events have been received, this function will suspend for up to timeout.

Exceptions

AssertionError - if the next event was an item or an error.

TimeoutCancellationException - if no event was received in time.