Skip to content
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

chore: enable upcoming feature InferSendableFromCaptures #390

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cweider
Copy link

@cweider cweider commented Feb 12, 2025

A massive number of concurrency warnings concern KeyPath and issues with its sendability. Rather than chase these down, make use of SE-0418, "Inferring Sendable for Methods and KeyPath Literals".

swift-tools-version is updated to 5.10, making the upcoming feature, InferSendableFromCaptures available. Once done, the compiler needs a little help assembling a correct KeyPath for \EnvironmentValues.theme. A hint that it should be a WritableKeyPath is enough to get it on track.

A massive number of concurrency warnings concern `KeyPath` and
issues with its sendability. Rather than chase these down make
use of SE-0418, "Inferring Sendable for Methods and KeyPath
Literals".

`swift-tools-version` is updated to 5.10, making the upcoming
feature, `InferSendableFromCaptures` available. Once done, the
compiler needs a little help assembling a correct `KeyPath` for
`\EnvironmentValues.theme`. A hint that it should be a
`WritableKeyPath` is enough to get it on track.
@@ -1,4 +1,4 @@
// swift-tools-version:5.6
// swift-tools-version:5.10
Copy link
Author

Choose a reason for hiding this comment

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

It could be argued that this should influence swift-markdown-ui’s versioning. It’s a judgement call that could be an argument for deferral and bundling it with StrictConcurrency.

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.

1 participant