-
Notifications
You must be signed in to change notification settings - Fork 47
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
Turn on strict concurrency. #57
Conversation
Package.swift
Outdated
@@ -27,35 +27,38 @@ let package = Package( | |||
"PerceptionMacros", | |||
.product(name: "OrderedCollections", package: "swift-collections"), | |||
.product(name: "XCTestDynamicOverlay", package: "xctest-dynamic-overlay"), | |||
], | |||
swiftSettings: [ | |||
.enableExperimentalFeature("StrictConcurrency") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's tag this branch with a pseudo-release so that we can confirm that this doesn't break downstream builds.
Might be worth turning on GlobalConcurrency too? |
Hi @Brett-Best, thanks for the suggestion! I can definitely add that, but it also seems to be a subset of StrictConcurrency as far as I can tell. I get the global mutable state warning when only StrictConcurrency is specified in Package.swift. Are you aware of anything that GlobalConcurrency surfaces that is not covered by StrictConcurrency? |
Ah, looks like it's enabled implicitly when StrictConcurrency is on 😅 |
No description provided.