We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 72f6eb7 commit ad097b3Copy full SHA for ad097b3
TSPL.docc/LanguageGuide/Concurrency.md
@@ -713,7 +713,7 @@ let photos = await withTaskGroup(of: Optional<Data>.self) { group in
713
let photoNames = await listPhotos(inGallery: "Summer Vacation")
714
for name in photoNames {
715
group.addTaskUnlessCancelled {
716
- guard isCancelled == false else { return nil }
+ guard Task.isCancelled == false else { return nil }
717
return await downloadPhoto(named: name)
718
}
719
0 commit comments