借助 Kotlin 协程,您可以简化 Android 应用中的异步编程。您将能够以更有序的方式编写代码,而不是在代码中使用许多回调。如需详细了解协程的优势,请参阅衔接课程。此外,您还可以动手体验如何将协程集成到示例应用来处理一些常见用例。
Content and code samples on this page are subject to the licenses described in the Content License. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2020-06-25 UTC.