Why does lifecycleScope.launch in a fragment block the UI thread?

前端 未结 0 533
情话喂你
情话喂你 2020-12-10 04:06

This is blocking the UI thread, but if I use GlobalScope then the UI would\'t be blocked.

lifecycleScope.launch {

            activity?.runOnUiThread {
              


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