Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save jacobsapps/abae8db5b7d02528ae1e215423260f6a to your computer and use it in GitHub Desktop.
Save jacobsapps/abae8db5b7d02528ae1e215423260f6a to your computer and use it in GitHub Desktop.
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