Skip to content

Commit f06cfe5

Browse files
committed
Track a change in the stdlib
1 parent 95d4af5 commit f06cfe5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

TSPL.docc/LanguageGuide/Concurrency.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -759,10 +759,10 @@ The code above makes several changes from the previous version:
759759
[`Task.isCancelled` instance]: https://developer.apple.com/documentation/swift/task/iscancelled-swift.property
760760

761761
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.
763763
For example:
764764

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:)
766766

767767
```swift
768768
let task = await Task.withTaskCancellationHandler {

0 commit comments

Comments
 (0)