Skip to content

[6.2][Concurrency] SE-0463: Sendable inference on sync and async variant… #82674

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
Jul 1, 2025

Conversation

xedin
Copy link
Contributor

@xedin xedin commented Jul 1, 2025

…s of imported APIs should match

(cherry picked from commit 30f0fa8)

…s of imported APIs should match

This is a follow-up to swiftlang#82085
which made it so async variant doesn't get `@Sendable` inferred because
the proposal specified that inference should happen only on completion
handler parameter type of a synchronous variant of an imported API.

This runs into implementation issues related to thunking in some
cases were async convention expects the type of a completion handler
to match exactly for both variants of the imported API.

Resolves: rdar://154695053
(cherry picked from commit 30f0fa8)
@xedin xedin requested a review from a team as a code owner July 1, 2025 07:18
@xedin xedin added 🍒 release cherry pick Flag: Release branch cherry picks swift 6.2 labels Jul 1, 2025
@xedin
Copy link
Contributor Author

xedin commented Jul 1, 2025

@swift-ci please test

@xedin xedin merged commit ec750ef into swiftlang:release/6.2 Jul 1, 2025
5 checks passed
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.2
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants