Why calling lifecycleScope.launch { //interact with database } works (without chaging the coroutine context), is a new thread created?

前端 未结 0 1798
时光取名叫无心
时光取名叫无心 2021-02-08 16:11

I am confused by why the following code works (called from MainActivity):

override fun onCreate(savedInstanceState: Bundle?) {
    super.onCreate(savedInstanceSta         


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