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 unfortunatelyzak.taccardi
08/20/2019, 1:19 AMAdam Powell
08/20/2019, 1:24 AMzak.taccardi
08/20/2019, 1:25 AMzak.taccardi
08/20/2019, 1:29 AMAdam Powell
08/20/2019, 1:31 AMzak.taccardi
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 oneAdam Powell
08/20/2019, 1:33 AMzak.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.DefaultAdam Powell
08/20/2019, 1:40 AMzak.taccardi
08/20/2019, 1:41 AMAdam Powell
08/20/2019, 1:42 AMAdam Powell
08/20/2019, 1:42 AMDico
08/20/2019, 6:43 PMval executor = Executor {
GlobalScope.launch { it() }
}Dico
08/20/2019, 6:43 PM