Skip to content

Remove temp_await from Build/BuildPlan/*Command/Workspace #7851

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
Aug 5, 2024

Conversation

AndrewHoos
Copy link
Contributor

@AndrewHoos AndrewHoos commented Aug 2, 2024

Remove temp_await from build related code

Motivation:

temp_await is unsafe and it would be better to use true async methods

Modifications:

Remove temp_await from BuildPlan
Remove temp_await from BuildOperation

Result:

Safer more modern Swift code

@MaxDesiatov MaxDesiatov changed the title Remove temp_await [part 5] Remove temp_await from Build/BuildPlan/Commands/Workspace Aug 2, 2024
@MaxDesiatov MaxDesiatov changed the title Remove temp_await from Build/BuildPlan/Commands/Workspace Remove temp_await from Build/BuildPlan/*Command/Workspace Aug 2, 2024
@MaxDesiatov
Copy link
Contributor

@swift-ci test

@MaxDesiatov MaxDesiatov added build system Changes to interactions with build systems command-line interface workspace Package workspace support labels Aug 2, 2024
Copy link
Contributor

Choose a reason for hiding this comment

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

This one needs import _Concurrency at the top to build with CMake/XCBuild

@MaxDesiatov
Copy link
Contributor

@swift-ci test

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) August 2, 2024 18:08
@MaxDesiatov
Copy link
Contributor

@swift-ci test windows

@MaxDesiatov MaxDesiatov disabled auto-merge August 2, 2024 18:10
@AndrewHoos AndrewHoos force-pushed the deprecateTempAwait5 branch from 9cdf3bf to d8183c5 Compare August 2, 2024 18:52
@AndrewHoos
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov
Copy link
Contributor

@swift-ci test windows

@MaxDesiatov
Copy link
Contributor

@AndrewHoos AndrewHoos force-pushed the deprecateTempAwait5 branch from d8183c5 to 184bd1c Compare August 5, 2024 16:10
@AndrewHoos
Copy link
Contributor Author

@MaxDesiatov
Copy link
Contributor

@swift-ci test windows

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) August 5, 2024 17:19
@MaxDesiatov
Copy link
Contributor

swiftlang/sourcekit-lsp#1609

@swift-ci test windows

@MaxDesiatov MaxDesiatov merged commit 43ca6aa into main Aug 5, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug build system Changes to interactions with build systems command-line interface concurrency workspace Package workspace support
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants