Skip to content

Remove usage of temp_await from WorkspaceTests #7124

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 4 commits into from
Nov 28, 2023
Merged

Conversation

AndrewHoos
Copy link
Contributor

Replace all usage of temp_await with await in WorkspaceTests

Motivation:

async/await is nicer than callbacks. I want to see it more broadly adopted in SPM

Modifications:

All usages of temp_await in the WorkspaceTests target have removed. Where necessary async alternatives have been added and the completion handler methods have been marked no-async. Note: this changed is based on the currently unmerged #7102, but that PR is passing CI and I hope should see no major changes at this point

Result:

async/await adoption in WorkspaceTests

AndrewHoos and others added 2 commits November 17, 2023 09:02
Make sure callback methods can't block the concurrency pool
Add async alternatives for Archiver
Add async alternatives for AuthorizationWriter
Mark non-async methods noasync to encourage migration to async
Removed a cancellation test that was not actually exercising production code

Co-authored-by: Max Desiatov <[email protected]>
Copy link
Contributor

@MaxDesiatov MaxDesiatov 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!

@MaxDesiatov
Copy link
Contributor

@swift-ci test

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) November 27, 2023 23:11
@MaxDesiatov MaxDesiatov merged commit 24929f3 into main Nov 28, 2023
@MaxDesiatov MaxDesiatov deleted the asyncTesting2 branch November 28, 2023 01:56
@MaxDesiatov MaxDesiatov added the test suite improvements to SwiftPM test suite label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug concurrency test suite improvements to SwiftPM test suite
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants