Skip to content

[TaskExecutors] Add missing return type to _DefaultGlobalConcurrentExecutor.asUnownedTaskExecutor() #71337

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

tshortli
Copy link
Contributor

@tshortli tshortli commented Feb 2, 2024

Addresses a warning that appears to point to a probable bug.

…ecutor.asUnownedTaskExecutor().

Addresses a warning that appears to point to a probable bug.
@tshortli tshortli requested a review from ktoso as a code owner February 2, 2024 02:43
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.

Oh boy that's a funny case...

We create this type for users to refer to but runtime does not utilize it explicitly.
We also have a default impl for the protocol requirement asUnownedTaskExecutor so this slipped through by accident huh.

Great catch, thank you -- yes this would be a bug when people try to use this executor reference explicitly

@ktoso ktoso added the concurrency Feature: umbrella label for concurrency language features label Feb 2, 2024
@tshortli tshortli enabled auto-merge February 2, 2024 02:47
@tshortli
Copy link
Contributor Author

tshortli commented Feb 2, 2024

@swift-ci please smoke test

@tshortli tshortli merged commit 6d8f6fc into swiftlang:main Feb 2, 2024
@tshortli tshortli deleted the global-concurrent-executor-as-unowned-task-executor-warning branch February 29, 2024 18:25
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