Before taking a closer look at the practical applications of coroutines, it may be beneficial to understand more about the foundations of coroutines as a concept. This section will explore the history of coroutines and look at how and why they have been added to Kotlin. Additionally, we'll learn about what problems coroutines solve and why they are a beneficial tool to take advantage of.
The foundations of coroutines
What are coroutines?
Coroutines, as a concept, date back to 1958 when Melvin Conway used the term to describe the construction of an assembly program. Coroutines are a means of achieving concurrent programming. They are similar to a thread, but generally more lightweight, as multiple coroutines can actually...