SwiftUI.Task cancellation behaviour

In the Swift docs, it says cancellation uses a cooperative model, which I understand as that all jobs (ie function calls) need to handle cancellation manually even if the task containing them got cancelled. I am assuming this is still the case even with using the SwiftUi.task?

The documentation for it should include a reference for how cancellation works to be complete.

Hello @MrWizardCoder,

SwiftUI's .task is a view modifier that inherits the cancellation behavior of Swift.Task.

For updates to the documentation, feel free to add your suggested wording in a Feedback request through Feedback Assistant.

 Travis

SwiftUI.Task cancellation behaviour
 
 
Q