Large coroutine vs many small coroutines?

后端 未结 0 1099
栀梦
栀梦 2021-02-07 11:31

In Kotlin, we can use coroutines to offload network API from the main thread. I wonder which is better:

val r1=launch(Dispatchers.IO) {
   api1()
}
val r2=launch(         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题