edenman
09/17/2021, 2:10 AMflowOn
that takes a CoroutineScope
? i basically want a way to have a flow { }
block that runs inside an existing scopeScope.coroutineContext
but that crashes with Flow context cannot contain job in it
elizarov
09/21/2021, 3:27 PMflow
is cold. It should not be defined in the existing scope. But you can collect it in a scope that you have.edenman
09/21/2021, 11:11 PMflow { }
block on a background threadflowOn
but i was trying not to deal with that because Dispatchers.IO isn’t in KMP