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

dharrigan

07/31/2018, 8:17 PM
🙂 No worries, I appreciate your responses anyway, since if I come to use activities (in the future) - I have an answer! 🙂
w

withoutclass

07/31/2018, 8:28 PM
If it helps, I’ve got a blog post describing how I’ve been doing some android stuff with coroutines: https://medium.com/@rocketwagon/presenter-as-a-function-reactive-mvp-for-android-using-kotlin-coroutines-442fc4c77119
d

dharrigan

07/31/2018, 8:55 PM
thanks! will review in the morning 🙂
🙂 1
b

bj0

08/01/2018, 1:47 AM
that example has issues, it leaves a lot of orphaned coroutines for one.
also the nullability thing doesn't make sense, as it's checked only once, right after the variable is assigned (so never null)
w

withoutclass

08/01/2018, 12:19 PM
Yea, I need to go back and update it probably, though it's not meant to be a perfect example, as most things on the internet. For instance I include created jobs in the model so the activity can clean them up on pause