我正在学习线程和 kotlin 协程以同时加载我的 UI 和存储库,但随后将“withContext()”作为异步等待的替代方法。如果我正确理解“withContext()”并且它执行一个又一个任务等待前一个任务完成,为什么还要使用它?我还缺少另一个概念吗?
concurrency android async-await kotlin
android ×1
async-await ×1
concurrency ×1
kotlin ×1