Skip to content

NFC: Resolve some Sendable-related warnings #7822

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
Jul 27, 2024
Merged

Conversation

MaxDesiatov
Copy link
Contributor

Assorted fixes for sendability warnings.

Assorted fixes for sendability warnings
@MaxDesiatov MaxDesiatov added concurrency no functional change No user-visible functional changes included labels Jul 25, 2024
@MaxDesiatov
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) July 25, 2024 13:21
@@ -391,6 +392,7 @@ fileprivate struct Worker {
return self.semaphore.wait(timeout: deadline)
}

@Sendable
Copy link
Contributor

Choose a reason for hiding this comment

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

I wonder if we should try enabling InferSendableFromCaptures instead of these explicit attributes in few places including properties.

Copy link
Contributor

Choose a reason for hiding this comment

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

cc @MaxDesiatov, we can do that without experimental flags too.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

How would you do that without experimental flags? Does Swift 6 language mode include support for that?

Copy link
Contributor

Choose a reason for hiding this comment

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

It’s an upcoming feature flag.

@MaxDesiatov MaxDesiatov merged commit 480a123 into main Jul 27, 2024
5 checks passed
@MaxDesiatov MaxDesiatov deleted the maxd/more-sendable branch July 27, 2024 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concurrency no functional change No user-visible functional changes included
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants