Patrick Steiger
04/03/2023, 8:22 PMyield
that does not dispatch if isDispatchNeeded == false
?CoroutineStart.UNDISPATCHED
but at some point I want to check for cancellation and run the code in the correct coroutine context present in scope, but I want to avoid dispatch if dispatcher is immediate and it was already called in the right threadbezrukov
04/03/2023, 8:32 PMensureActive
instead https://kotlinlang.org/api/kotlinx.coroutines/kotlinx-coroutines-core/kotlinx.coroutines/ensure-active.htmlPatrick Steiger
04/03/2023, 8:58 PM