Join Slack
Powered by
Do you often use something like following to execu...
# android
s
Sudhir Singh Khanger
06/07/2021, 4:10 AM
Do you often use something like following to execute your code concurrently instead of synchronously? I see a lot of tasks during clean up don't need to happen synchronously.
Copy code
viewModelScope.launch { launch { task1 } launch { task2 } }
g
gildor
06/07/2021, 4:45 AM
We do use it if we need parallel execution of tasks
s
Sudhir Singh Khanger
06/07/2021, 5:06 AM
Thanks
12
Views
Open in Slack
Previous
Next