Utilizing async operations has always been hard, across platforms and languages. There have been many constructs that simplify working with async operations, e.g., on the JVM you have Threads, Executors, etc. However, they usually come with certain caveats in their usage.
But now Kotlin has come along with its own vision, a different construct called Coroutines. Coroutines have been present in other languages in the past, but Kotlin Coroutines brings their own take to the JVM platform. The best part about Kotlin Coroutines is that they try to simplify code into a sequential form and get rid of callback madness.
For people looking to understand Kotlin Coroutines, check out the infographic below to get started! :]
以上就是本文的全部内容,希望本文的内容对大家的学习或者工作能带来一定的帮助,也希望大家多多支持 码农网
猜你喜欢:本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们。
Professional JavaScript for Web Developers
Nicholas C. Zakas / Wrox / 2009-1-14 / USD 49.99
This eagerly anticipated update to the breakout book on JavaScript offers you an in-depth look at the numerous advances to the techniques and technology of the JavaScript language. You'll see why Java......一起来看看 《Professional JavaScript for Web Developers》 这本书的介绍吧!