Skip to content

[Concurrency] completeWithTask expects to receive a @Sendable closure #1943

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 1 commit into from
Aug 19, 2021

Conversation

fabianfett
Copy link
Member

Motivation

On the Swift main branch, the Sendable checking has been enabled. It currently emits warnings. Since we test with -warnings-as-errors, our CI does not succeed in the nightly-main step.

Changes

  • Make EventLoopPromise.completeWithTask require a @Sendable closure

Result

  • CI should pass on Swift main again

@fabianfett fabianfett requested review from glbrntt and weissi August 18, 2021 17:50
@fabianfett
Copy link
Member Author

It looks like now it is failing, because of another crash. Not us anymore \o/

Copy link
Contributor

@PeterAdams-A PeterAdams-A left a comment

Choose a reason for hiding this comment

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

Seems good.

@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Aug 19, 2021
@fabianfett fabianfett merged commit 94f41c4 into apple:main Aug 19, 2021
@fabianfett fabianfett deleted the ff-fix-Sendable-warning branch August 19, 2021 10:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants