I'm starting to write a Medium article that aims to guide Android developers to use kotlinx.coroutines.
I'll cover the basics to use coroutines correctly in Android apps. That includes how to use
launch
,
withContext
,
async
, the
suspend
modifier, which CoroutineContext to pick, what a
Job
is, how to wrap a callback with
suspendCoroutine
, how to handle errors, how to handle lifecycles of Android components. I'll also talk about some good libraries made on coroutines. Namely,
@gildor and
@jw ones for Retrofit. I'll also talk about channels and how it can be used for actors and to wrap true callback hells.
Since this is my first public article, I'm unsure about the results, but I'm determined.
I can share the draft to anyone willing to give feedback or willing to help in any other way.
The current title of the draft article is
kotlinx.coroutines intro for Android Devs. Please tell me if you dislike it or if you think you have a better one.