Skip to content

Extend _unsafeInheritExecutor_ to remaining @_unsafeInheritExecutor APIs #75248

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

DougGregor
Copy link
Member

Extend the unsafeInheritExecutor workaround to all remaining APIs in the Concurrency library that have adopted #isolation default arguments to (safely) stay in the caller's isolation domain...

... except one. Clock.measure() is currently running into problems with the type checker workaround and needs a little more thought.

Fixes rdar://131760111.

@DougGregor DougGregor requested a review from ktoso as a code owner July 15, 2024 18:05
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor
Copy link
Member Author

@swift-ci please smoke test

Extend the _unsafeInheritExecutor_ workaround to all remaining APIs in the
Concurrency library that have adopted `#isolation` default arguments to
(safely) stay in the caller's isolation domain...

... except one. Clock.measure() is currently running into problems with
the type checker workaround and needs a little more thought.

Fixes rdar://131760111.
…ecutor_ functions

When inside the concurrency library, suppress the diagnostics about use
of the (deprecated) `@_unsafeInheritExecutor` for functions whose names
start with the "_unsafeInheritExecutor_" prefix that's used for
compatibility. This focuses the diagnostic on those places in the
concurrency library that might still need to introduce this hack.
@DougGregor DougGregor force-pushed the unsafe-inherit-executor-the-rest branch from 470d5c1 to a47483c Compare July 15, 2024 21:38
@DougGregor
Copy link
Member Author

@swift-ci please smoke test

@DougGregor DougGregor enabled auto-merge July 15, 2024 21:39
Copy link
Contributor

@ktoso ktoso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you! Lgtm

@DougGregor DougGregor merged commit a3bf1fc into swiftlang:main Jul 16, 2024
3 checks passed
@DougGregor DougGregor deleted the unsafe-inherit-executor-the-rest branch July 16, 2024 19:36
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