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

joao.alves

12/19/2018, 10:12 PM
I’m a bit confused here. I’m following this talk from Christina Lee from Droidcon around coroutines and trying to migrate my sample app from Rx following it. My question is, if I define the coroutineContext using the Main dispatcher by default, when I call
launch {}
am I not running the code inside on the main thread?
m

matt tighe

12/20/2018, 5:23 PM
I haven’t seen explicit constructors for ViewModels before. How does instantiation of this work? I’ve been using a nasty factory implementation