Join Slack
Powered by
I want to cancel all old jobs in a CoroutineScope ...
# coroutines
a
Arun
03/08/2021, 9:25 AM
I want to cancel all old jobs in a CoroutineScope and start a new job in the same CoroutineScope. What’s the best way to do that?
k
krzysztof
03/08/2021, 10:04 AM
If you apply structured concurrency, I guess you could simply do
cancelAndWait
on scope and then reuse it
🚫 1
a
Arun
03/08/2021, 10:11 AM
Ok
t
travis
03/08/2021, 3:00 PM
I think you're looking for
cancelChildren
.
☝️ 3
4
Views
Open in Slack
Previous
Next