Join Slack
Powered by
Is it considered good practice to utilize coroutin...
# android
r
rook
09/04/2019, 2:28 PM
Is it considered good practice to utilize coroutines from an Activity/Fragment?
c
carbaj0
09/04/2019, 2:43 PM
Usually the best place to utilize coroutines is the presenter or your viewModel
☝️ 1
g
gildor
09/04/2019, 3:17 PM
Yes, just use lifecycleOwner.coroutineScope extension to safely launch Coroutine in it
✅ 4
r
rook
09/04/2019, 3:42 PM
Thanks Andrey, I was wondering about the scope issue. I felt the same way, Alejandro, I just wanted to take the pulse of the community
Open in Slack
Previous
Next