项目作者: AnilKrishna
项目描述 :
Kotlin Coroutines experiments
高级语言: Kotlin
项目地址: git://github.com/AnilKrishna/kotlin-coroutines-learning.git
Kotlin-Coroutines-Experiments
Experiments on how to use Kotlin Coroutines in an Android app—a new way of managing background threads that can
simplify code by reducing the need for callbacks. Coroutines are a Kotlin feature that convert async
callbacks for long-running tasks, such as database or network access, into sequential code.
Features
- How to call code written with coroutines and obtain results.
- How to use suspend functions to make async code sequential.
- How to use launch and runBlocking to control how code executes.
- Techniques to convert existing APIs to coroutines using suspendCoroutine.
- How to use coroutines with Architecture Components.
- Best practices for testing coroutines.