https://kotlinlang.org logo
#coroutines
Title
# coroutines
g

groostav

10/17/2018, 12:12 AM
Is simply assuming its OK to dispatch things on the common pool an OK practice? What about the default executor?
g

gildor

10/17/2018, 1:44 AM
CommonPool is deprecated, do not use it, just use Dispatchers.Default It’s ok and fine practice if your code is not blocking (so you just dispatch coroutines). If your operation is blocking, just use IO dispatcher. If it’s CPU consuming, you can also use Dispatcher.Default I suppose, it’s by default CPU bound
e

elizarov

10/17/2018, 6:50 AM
Yes!
3 Views