An Overview on Kotlin Coroutines

In today’s post, we are going to explore what Kotlin Coroutines are and how they work. This is going to be a high-level overview, so if you want more detail, check out the reference section videos and articles.

Definition

A coroutine is a function that has one or more suspension points. Different from a normal function, which is called, then initializes the local state, executes and terminates. It will have a start, and at each suspension point the function saves the local state (value of variables declared in the scope of that function) and…

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store