在Android
应用中使用Kotlin Coroutine(协程)
和Retrofit
发起网络请求使用Demo
,主要包含如下东西
- 如何将
Kotlin Coroutine(协程)
和Retrofit
结合使用 - 如何在
Kotlin Coroutine(协程)
切换协程所在线程 - 如何在
Kotlin Coroutine(协程)
中将两个请求结果进行合并 Kotlin Coroutine(协程)
中如何实现并发请求MVP
开发模式中如何在Presenter
生命周期结束时优雅的取消协程- 如何将一个普通异步操作改造为协程中的挂起函数