voddan
06/03/2019, 12:39 PMwithContext
inside a flow{}
, basically. Can there be a realistic situation when such use is permitted? Maybe if emit
is outside of withContext
, or there are several `nested withContext
that work in a way that protect the caller's context?elizarov
06/03/2019, 1:49 PMwithContext
, but cannot emit
from a different context.Paul Woitaschek
06/04/2019, 9:33 PMwithContext
, you might receive elements after the job was cancelled, even if you're cancelling on the same thread: https://github.com/Kotlin/kotlinx.coroutines/issues/1177