Skip to content

Adopt Sendable in DispatchQueue and similar types #821

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 2 commits into from
Mar 29, 2024

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Mar 28, 2024

A few well known types like DispatchSemaphore, DispatchIO, DispatchGroup, DispatchQueue, DispatchSource should all be Sendable.

resolves rdar://123284763

@ktoso
Copy link
Contributor Author

ktoso commented Mar 28, 2024

@swift-ci please smoke test

@ktoso
Copy link
Contributor Author

ktoso commented Mar 28, 2024

@swift-ci please test linux

@ktoso ktoso requested review from rokhinip and PriyaAvhad March 28, 2024 14:39
@ktoso
Copy link
Contributor Author

ktoso commented Mar 29, 2024

Also @Sendable to .async APIs as they are on Apple platforms.
This solves rdar://123284763

Thanks for review!

@ktoso
Copy link
Contributor Author

ktoso commented Mar 29, 2024

@swift-ci please smoke test

@ktoso
Copy link
Contributor Author

ktoso commented Mar 29, 2024

@swift-ci please test

@ktoso ktoso merged commit 7776634 into swiftlang:main Mar 29, 2024
2 checks passed
@ktoso ktoso deleted the wip-sendable branch March 29, 2024 04:50
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.

3 participants