timeout

val FlowTurbine<*>.timeout: Duration

Duration that awaitItem, awaitComplete, awaitError, and awaitEvent will wait before throwing a timeout exception.

WARNING: This function uses experimental time support in Kotlin and requires that your Kotlin version and Kotlin coroutines version exactly match the version used by Turbine.