I’m a bit confused here. I’m following this talk f...
# coroutines
j
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
I haven’t seen explicit constructors for ViewModels before. How does instantiation of this work? I’ve been using a nasty factory implementation