Sam
03/21/2025, 10:06 AMSam
03/21/2025, 10:08 AMCLOVIS
03/21/2025, 12:29 PMMainScope
over a custom CoroutineScope
with your own Job
and a dispatcher? MainScope
is single-threaded, isn't it?Arjan van Wieringen
03/21/2025, 12:47 PMSam
03/21/2025, 3:01 PMAny reason to recommendJust that it's easier. When MainScope is available, it "just works"—you don't need to know what aover a customMainScope
[…]?CoroutineScope
Job
is, and you avoid threading issues in UI code. I guess I'm treating multithreading and custom jobs as more advanced features that you can add in later, if you need them.CLOVIS
03/21/2025, 3:07 PMGlobalScope
. I think people who want to learn coroutines tend to be interested in multithreading.Sam
03/21/2025, 4:05 PMCLOVIS
03/21/2025, 4:56 PMPablichjenkov
03/21/2025, 8:32 PMSam
03/24/2025, 3:12 PMKlitos Kyriacou
03/25/2025, 1:27 PMSam
03/25/2025, 1:29 PM