ansman
10/02/2020, 12:13 AMCoroutineDispatcher
that is an immediate behavior. I noticed that dispatchYield
is marked with @InternalCoroutinesApi
. Can someone confirm that this is there to prevent people from calling the method, not implementing it? Reading the documentation it seems that this is meant for custom dispatchers to implement but that you should avoid calling it manuallyelizarov
10/02/2020, 7:25 AMUnconfiedDispatcher
, but it is not used anymore, so it could disappear from API at any time.yield()
inside a Dispatchers.Default
it is done in a fair way. But not used for "immediate" behavior anymore. For immediate behavior you just return false
from isDispatchNeeded
ansman
10/02/2020, 4:25 PM