Skip to content

🍒[5.10][Concurrency] Un-deprecate enqueue(UnownedJob) for easier adoption #69533

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

Conversation

ktoso
Copy link
Contributor

@ktoso ktoso commented Oct 31, 2023

Description: We were emitting a custom deprecation about the enqueue(UnownedJob) in order to nudge people to use the move-only ExecutorJob. With this deprecation emitted by the compiler some codebases that support many old Swift versions have been forced into warnings they cannot avoid due to the compatibility promises they made.

The UnownedJob never was deprecated, so no change to it.

Risk: Low, only a deprecation removal.
Impact: This removes the warning but changes no functionality. Helps projects adopting custom executors but having to support old Swift versions avoid compile warnings.

Original PR: #69532
Review by: @FranzBusch

Radar: rdar://117123460

With this deprecation emitted by the compiler some codebases that
support many old Swift versions have been forced into warnings they
cannot avoid due to the compatibility promises they made.

This removes the warning but changes no functionality.
@ktoso ktoso requested a review from a team as a code owner October 31, 2023 09:35
@ktoso ktoso changed the title [Concurrency] Un-deprecate enqueue(UnownedJob) for easier adoption 🍒[5.10][Concurrency] Un-deprecate enqueue(UnownedJob) for easier adoption Oct 31, 2023
@ktoso
Copy link
Contributor Author

ktoso commented Oct 31, 2023

@swift-ci please test

@ktoso
Copy link
Contributor Author

ktoso commented Oct 31, 2023

CI on macos is broken with fatal error: module map file '/Users/ec2-user/jenkins/workspace/oss-swift-incremental-RA-macos/build/buildbot_incremental/swiftdriver-macosx-x86_64/x86_64-apple-macosx/release/llbuildBasic.build/module.modulemap' not found

when that's fixed this should be re-run and merged

@ktoso ktoso requested review from hborla and DougGregor October 31, 2023 14:30
@ktoso
Copy link
Contributor Author

ktoso commented Oct 31, 2023

@swift-ci please test

@ktoso
Copy link
Contributor Author

ktoso commented Nov 1, 2023

@swift-ci please test Windows

@ktoso
Copy link
Contributor Author

ktoso commented Nov 1, 2023

Thank you! Merging, hope this helps adoption without warnings @FranzBusch :)

@ktoso ktoso merged commit 065dbd0 into swiftlang:release/5.10 Nov 1, 2023
@ktoso ktoso deleted the pick-a3b4e90bb2598610ae89d807e6f89128ca4361eb branch November 1, 2023 04:14
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