Skip to content

TSCBasic: mark Path-conforming types Sendable #361

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
Nov 3, 2022

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Nov 3, 2022

These types only have a trivial String stored property in their implementation. Marking them as Sendable seems safe and allows them to be freely used in async contexts.

@MaxDesiatov
Copy link
Contributor Author

@swift-ci please test

@MaxDesiatov MaxDesiatov self-assigned this Nov 3, 2022
@MaxDesiatov MaxDesiatov merged commit 50b34c7 into main Nov 3, 2022
MaxDesiatov added a commit that referenced this pull request Nov 3, 2022
SwiftPM already requires 5.5, but now with `Sendable` introduced on some TSC types in #361, this is unlikely to compile without errors with Swift 5.4.
@MaxDesiatov MaxDesiatov deleted the maxd/sendable-path branch November 3, 2022 16:40
neonichu pushed a commit that referenced this pull request Nov 7, 2022
SwiftPM already requires 5.5, but now with `Sendable` introduced on some TSC types in #361, this is unlikely to compile without errors with Swift 5.4.
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.

2 participants