Javier
01/27/2021, 11:45 PMundispatched
one, as I said, my problem is the Unconfined
context
, and I really don't know if it is useful. Do you think context
fits in test
function?
suspend fun <T> Flow<T>.test(
timeout: Duration = 1.seconds,
context: CoroutineContext = Unconfined,
validate: suspend FlowTurbine<T>.() -> Unit
) {
coroutineScope {
...
val collectJob = launch(start = UNDISPATCHED, context = context) {
...
}
}
}