Skip to content

[6.0🍒][Concurrency] Improvements to the concurrency model for stored properties of globally-isolated Sendable value types and globally-isolated function types. #73146

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

Conversation

simanerush
Copy link
Member

@simanerush simanerush commented Apr 19, 2024

@simanerush simanerush requested a review from a team as a code owner April 19, 2024 21:33
@simanerush simanerush added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.0 labels Apr 19, 2024
Since globally isolated functions may never be called concurrently, they are implicitly Sendable.
@simanerush simanerush changed the title [6.0🍒][Concurrency] Infer nonisolated for a mutable storage of a value type accessed from within the module. [6.0🍒][Concurrency] Infer nonisolated for a mutable storage of a value type accessed from within the module. Infer @Sendable for globally isolated function types and allow globally isolated closures to capture non-Sendable values. Apr 19, 2024
@simanerush
Copy link
Member Author

@swift-ci please test

@simanerush simanerush changed the title [6.0🍒][Concurrency] Infer nonisolated for a mutable storage of a value type accessed from within the module. Infer @Sendable for globally isolated function types and allow globally isolated closures to capture non-Sendable values. [6.0🍒][Concurrency] Improvements to the concurrency model for stored properties of a globally-isolated Sendable value types and globally-isolated function types. Apr 19, 2024
@simanerush simanerush changed the title [6.0🍒][Concurrency] Improvements to the concurrency model for stored properties of a globally-isolated Sendable value types and globally-isolated function types. [6.0🍒][Concurrency] Improvements to the concurrency model for stored properties of globally-isolated Sendable value types and globally-isolated function types. Apr 19, 2024
@simanerush simanerush merged commit 5b0f7f7 into swiftlang:release/6.0 Apr 20, 2024
@simanerush simanerush deleted the nonisolated-value-type-6.0 branch April 20, 2024 05:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🍒 release cherry pick Flag: Release branch cherry picks swift 6.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants