Coroutines for asynchronous programming and more
There are many approaches to this problem, and in Kotlin we take a very flexible one by providing Coroutine support at the language level and delegating most of the functionality to libraries, much in line with Kotlin’s philosophy.
As a bonus, coroutines not only open the doors to asynchronous programming, but also provide a wealth of other possibilities such as concurrency, actors, etc.
New to Kotlin? Take a look at the page.
Selected documentation pages:
- Introduction to Coroutines and Channels hands-on lab
Example Projects
Even more examples are on GitHub