File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -759,10 +759,10 @@ The code above makes several changes from the previous version:
759
759
[ `Task.isCancelled` instance ] : https://developer.apple.com/documentation/swift/task/iscancelled-swift.property
760
760
761
761
For work that needs immediate notification of cancellation,
762
- use the [ ` Task.withTaskCancellationHandler(operation:onCancel:) ` ] [ ] method.
762
+ use the [ ` Task.withTaskCancellationHandler(operation:onCancel:isolation: ) ` ] [ ] method.
763
763
For example:
764
764
765
- [ `Task.withTaskCancellationHandler(operation:onCancel:)` ] : https://developer.apple.com/documentation/swift/withtaskcancellationhandler(operation:oncancel:)
765
+ [ `Task.withTaskCancellationHandler(operation:onCancel:isolation: )` ] : https://developer.apple.com/documentation/swift/withtaskcancellationhandler(operation:oncancel:isolation :)
766
766
767
767
``` swift
768
768
let task = await Task.withTaskCancellationHandler {
You can’t perform that action at this time.
0 commit comments