Skip to content

[Concurrency] Un-deprecate enqueue(UnownedJob) for easier adoption #69532

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 1, 2023

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.

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
Copy link
Contributor Author

ktoso commented Oct 31, 2023

@swift-ci please smoke test

@ktoso ktoso added the concurrency Feature: umbrella label for concurrency language features label Oct 31, 2023
@ktoso
Copy link
Contributor Author

ktoso commented Oct 31, 2023

@swift-ci please smoke test

@ktoso ktoso merged commit a315cca into swiftlang:main Nov 1, 2023
@ktoso ktoso deleted the wip-un-deprecate-enqueue-unownedjob branch November 1, 2023 00:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
concurrency Feature: umbrella label for concurrency language features
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants