Skip to content

Concurrency: Restore consume in TaskLocal.withValueImpl<R>(_:operation:) #67932

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

tshortli
Copy link
Contributor

It is no longer necessary to avoid using the consume keyword in inlinable function bodies in the standard library in order to support older compilers.

Partially reverts #65599.

Resolves rdar://109165937.

…n:).

It is no longer necessary to avoid using the `consume` keyword in inlinable
function bodies in the standard library in order to support older compilers.

Partially reverts swiftlang#65599.

Resolves rdar://109165937.
@tshortli tshortli requested a review from nate-chandler August 15, 2023 05:23
@tshortli tshortli requested review from ktoso and kavon as code owners August 15, 2023 05:23
@tshortli
Copy link
Contributor Author

@swift-ci please test

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.

Lgtm, afaik this restores the keyword that was here but was temporarily removed. Thanks for bringing it back -- it conveys the right semantics here

@ktoso ktoso added the concurrency Feature: umbrella label for concurrency language features label Aug 15, 2023
Copy link
Contributor

@nate-chandler nate-chandler left a comment

Choose a reason for hiding this comment

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

Thanks!

@tshortli tshortli merged commit 113bfc7 into swiftlang:main Aug 15, 2023
@tshortli tshortli deleted the restore-task-local-with-value-impl-consume branch August 15, 2023 17:22
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.

3 participants