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 mindDispatcher
than to use Dispatchers.Default
Pablo
02/01/2021, 4:11 PMMarko Novakovic
02/01/2021, 4:21 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