Skip to content

[Swift] Add Approachable Concurrency setting and Concurrency category #506

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
May 13, 2025

Conversation

xedin
Copy link
Contributor

@xedin xedin commented May 13, 2025

The setting turns on the upcoming features from Swift 6 and future release
that aim to make Swift concurrency adoption more approachable:

  • DisableOutwardActorInference (Swift 6)
  • InferSendableFromCaptures (Swift 6)
  • GlobalActorIsolatedTypeUsability (Swift 6)
  • NonisolatedNonsendingByDefault (future)
  • InferIsolatedConformances (future)

Some of the most important settings are now grouped into Concurrency category to make them easier to identify.

Resolves: rdar://151028636

xedin added 2 commits May 13, 2025 00:08
The setting turns on the upcoming features from Swift 6 and future release
that aim to make Swift concurrency adoption more approachable:

 - DisableOutwardActorInference (Swift 6)
 - InferSendableFromCaptures (Swift 6)
 - GlobalActorIsolatedTypeUsability (Swift 6)
 - NonisolatedNonsendingByDefault (future)
 - InferIsolatedConformances (future)
This new category groups together a few import concurrency related settings:

 - Approachable Concurrency
 - Default Actor Isolation
 - Strict Concurrency Checking
@xedin
Copy link
Contributor Author

xedin commented May 13, 2025

@swift-ci please test

@xedin
Copy link
Contributor Author

xedin commented May 13, 2025

@swift-ci please test Linux platform

@xedin xedin merged commit faf9950 into swiftlang:main May 13, 2025
24 checks passed
@hborla
Copy link
Member

hborla commented May 13, 2025

Woohoo, thank you! This will make it so much easier to enable the set of upcoming features that lift data-race safety restrictions.

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.

4 participants