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

cypher121

06/10/2019, 5:25 AM
is there a good overview of various execution contexts/dispatchers? finding it a little hard to understand where stuff runs after suspend, especially with flowOn (not sure which block of code runs where)
g

gildor

06/10/2019, 5:29 AM
after suspend it will run on the same dispatcher as before suspend
except cases when you use Unconfined dispatcher which is not dispatching calls, just use call site thread
Official guide is pretty good and explaining those things https://kotlinlang.org/docs/reference/coroutines/coroutine-context-and-dispatchers.html
flowOn is new experimental API, just check documentation of this extension, I don’t think that there is a better guide
c

cypher121

06/10/2019, 5:41 AM
thanks!
4 Views