Skip to content

Replace withCheckedThrowingContinuation with native async/await #7860

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 6, 2024

Conversation

AndrewHoos
Copy link
Contributor

Replace withCheckedThrowingContinuation with native async/await

Motivation:

Replace callback and continuation usage with async/await

Modifications:

Replaced calls to withCheckedThrowingContinuation on APIs that have async alternatives
Replaced 3 completion handler APIs in swift-bootstrap making it fully async/await

Result:

11 fewer continuation usages
1 fewer unstructured Task
3 fewer completion handler APIs

@AndrewHoos
Copy link
Contributor Author

@swift-ci test

@MaxDesiatov MaxDesiatov enabled auto-merge (squash) August 6, 2024 21:45
@MaxDesiatov MaxDesiatov merged commit d2a0167 into main Aug 6, 2024
5 checks passed
@MaxDesiatov MaxDesiatov deleted the moreAsync branch August 6, 2024 23:22
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.

2 participants