Does taskGroup.cancelAll() require active co-operation to finish properly?

We did a talk specifically around the details of structured concurrency over here: Beyond the basics of structured concurrency - WWDC23 - Videos - Apple Developer

Cancellation does propagate to child tasks, it’s just that they also must react cooperatively. There’s no “interrupt” per se, other than the cancellation handlers which also are just another way to cooperatively react.

1 Like