Skip to content

Reduce usage of callback and dispatch methods in favor of async/await #8744

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

AndrewHoos
Copy link
Contributor

Reduce usage of callback and dispatch methods in favor of async/await

Motivation:

Adopt native async/await in more places

Modifications:

Remove unused callback APIs
Remove unneeded withChecked*Continuation wrappers
Use async/await in more tests

Result:

Fewer callbacks and async wrappers and more native async/await

@plemarquand
Copy link
Contributor

@swift-ci please test

Remove unused callback API
Remove unneeded withChecked*Continuation wrappers
Use async/await in more tests
@AndrewHoos
Copy link
Contributor Author

@swift-ci test

@AndrewHoos
Copy link
Contributor Author

@swift-ci test macOS

@plemarquand
Copy link
Contributor

@swift-ci test windows

@@ -97,8 +97,7 @@ public class RepositoryManager: Cancellable {
repository: RepositorySpecifier,
updateStrategy: RepositoryUpdateStrategy,
observabilityScope: ObservabilityScope,
delegateQueue: DispatchQueue,
callbackQueue: DispatchQueue
delegateQueue: DispatchQueue
Copy link
Contributor

Choose a reason for hiding this comment

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

#8721 should refactor this so lookup is all async.

@AndrewHoos AndrewHoos enabled auto-merge (squash) May 30, 2025 13:36
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