zak.taccardi
08/20/2019, 1:18 AMExecutor
as a parameter. How can I create an Executor
that is backed by Dispatchers.Default
? There is no CoroutineDispatcher.asExecutor()
function unfortunatelyAdam Powell
08/20/2019, 1:24 AMAdam Powell
08/20/2019, 1:31 AMzak.taccardi
08/20/2019, 1:31 AMAdam Powell
08/20/2019, 1:32 AMmyHandler::post
as an Executor and bounce off the main thread, no need to spin up a different onezak.taccardi
08/20/2019, 1:34 AMAdam Powell
08/20/2019, 1:35 AMzak.taccardi
08/20/2019, 1:35 AMDispatchers.Default
threadAdam Powell
08/20/2019, 1:36 AMcallbackFlow
, or similar) then there's no reason to have the executor bounce between threads an extra timezak.taccardi
08/20/2019, 1:37 AMViewModel
which processes intentions/actions on Dispatchers.Default
Adam Powell
08/20/2019, 1:40 AMzak.taccardi
08/20/2019, 1:41 AMAdam Powell
08/20/2019, 1:42 AMDico
08/20/2019, 6:43 PMval executor = Executor {
GlobalScope.launch { it() }
}