when I run GlobalScope.launch, is it backed by a t...
# coroutines
d
when I run GlobalScope.launch, is it backed by a threadpool? or it will run in the main thread?
e
It runs in a thread-pool of
Dispatchers.Default
d
are all coroutines running in some kind thread pool? or I can launch them in the main thread?
e
You can explicitly specify dispatcher. You can read more here http://kotlinlang.org/docs/reference/coroutines/coroutine-context-and-dispatchers.html