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

Adding async await to DataLoader #15

Merged
merged 8 commits into from
Jul 25, 2022

Conversation

d-exclaimation
Copy link
Member

This pull request simply adds extensions to use DataLoader with async await.

This also includes test cases using these async await extensions derived from DataLoaderTests, but without some test cases as it seemed redundant.

Another thing to note is that the ConcurrentBatchLoadFunction is set to be Sendable, which makes sure it is concurrent safe. I think it makes a lot of sense in this case.

@d-exclaimation
Copy link
Member Author

d-exclaimation commented Jul 25, 2022

Apparently, swift-actions/setup-swift does not work with async await.

Copy link
Member

@NeedleInAJayStack NeedleInAJayStack left a comment

Choose a reason for hiding this comment

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

Oh you beat me to this!

Awesome changes, they look excellent. Just a small change request on the test Action yaml.

Thanks for your hard work @d-exclaimation!

.github/workflows/test.yml Show resolved Hide resolved
@NeedleInAJayStack NeedleInAJayStack merged commit 5c27005 into GraphQLSwift:master Jul 25, 2022
@d-exclaimation d-exclaimation deleted the async-await branch July 26, 2022 08:55
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