Pablo
02/01/2021, 2:35 PMMarko Novakovic
02/01/2021, 2:41 PMDispatchers.Default
is really tricky one. Use it with caution. You should Dispatchers.Default
handle the same number of operations as number of cores on the device. If you have more you will wait for one of them to finish in order to do another one. On low spec devices that could be only 2 operations. You shouldn’t really have problems here but just keep this in mindMarko Novakovic
02/01/2021, 2:43 PMDispatcher
than to use Dispatchers.Default
Marko Novakovic
02/01/2021, 2:45 PMPablo
02/01/2021, 4:11 PMPablo
02/01/2021, 4:11 PMMarko Novakovic
02/01/2021, 4:21 PMMarko Novakovic
02/01/2021, 4:21 PMMarko Novakovic
02/01/2021, 4:22 PM<http://Dispatcher.IO|Dispatcher.IO>
for example, same for Dispatcher.Default
, can start coroutine one one thread and finish it on some other thread. this dispatcher use just one thread