Skip to content
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

Rewrite api using async/await #40

Merged
merged 14 commits into from
Mar 4, 2022
Merged

Rewrite api using async/await #40

merged 14 commits into from
Mar 4, 2022

Conversation

tahirmt
Copy link
Owner

@tahirmt tahirmt commented Dec 9, 2021

Since starting Xcode 13.2 we can back deploy concurrency to macOS 10.15, this library can be rewritten using async/await instead of the completion handlers hell.

closes #27


var outputs: [Result<T, Error>] = []

waitUntil(timeout: .seconds(5)) { done in
Copy link

Choose a reason for hiding this comment

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

Hope they'll add an async/await version of this to Quick

Copy link
Owner Author

Choose a reason for hiding this comment

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

There's an open issue there. But for now this works.

@tahirmt tahirmt force-pushed the async-await-rewrite branch from 3caefa8 to 53a1f08 Compare December 9, 2021 17:16
@tahirmt tahirmt force-pushed the async-await-rewrite branch from 53a1f08 to 2db06a3 Compare December 9, 2021 17:19
@tahirmt
Copy link
Owner Author

tahirmt commented Dec 9, 2021

Can't merge it in until swift 5.5.2 is released and is on the ubuntu container.

@tahirmt tahirmt added the enhancement New feature or request label Dec 9, 2021
@tahirmt tahirmt force-pushed the async-await-rewrite branch from 6e19bd5 to ffe07c2 Compare December 29, 2021 14:40
@tahirmt tahirmt merged commit 06cbc51 into main Mar 4, 2022
@tahirmt tahirmt deleted the async-await-rewrite branch March 4, 2022 18:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Refactor to use async/await
2 participants