Skip to content

[Concurrency] implement withCancellationHandler via records #36032

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 18, 2021

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Feb 18, 2021

Implements withCancellationHandler.

@ktoso
Copy link
Contributor Author

ktoso commented Feb 18, 2021

rdar://70141994

@@ -585,9 +585,6 @@ func getJobFlags(_ task: Builtin.NativeObject) -> Task.JobFlags
@usableFromInline
func _enqueueJobGlobal(_ task: Builtin.Job)

@_silgen_name("swift_task_isCancelled")
func isTaskCancelled(_ task: Builtin.NativeObject) -> Bool
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we already have _taskIsCancelled, this was not used

@ktoso ktoso force-pushed the wip-cancellation-handler branch from dcb891e to 40b6b18 Compare February 18, 2021 08:27
@ktoso
Copy link
Contributor Author

ktoso commented Feb 18, 2021

@swift-ci please smoke test

@ktoso
Copy link
Contributor Author

ktoso commented Feb 18, 2021

Was only a silly remaining try since we made the func rethrows that caused a test failure, will pass now.

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit 5e9d4d8 into swiftlang:main Feb 18, 2021
@ktoso ktoso deleted the wip-cancellation-handler branch February 18, 2021 13:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants