Join Slack
Powered by
<difference CoroutineScope(Dispatchers.IO + Job())...
# stackoverflow
r
rss
09/24/2024, 4:01 AM
difference CoroutineScope(Dispatchers.IO + Job()) and CoroutineScope(Dispatchers.IO) + Job()
I wonder what is the difference between these 2 ways of creating scope? 1: val scope1 = CoroutineScope(
Dispatchers.IO
+ Job()) 2 val scope2 = CoroutineScope(
Dispatchers.IO
) + Job() I noticed that it both creates 1 CoroutineScope. is there any difference between these 2 ways of creating?
2
Views
Open in Slack
Previous
Next