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.


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…