Created
July 8, 2025 11:24
-
-
Save jacobsapps/abae8db5b7d02528ae1e215423260f6a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let taskA = Task { | |
Task { // task B | |
try Task.checkCancellation() // does NOT throw | |
} | |
try Task.checkCancellation() // throws | |
} | |
taskA.cancel() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment