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

Correct Async usage #1110

Open
dkarlovi opened this issue Mar 17, 2023 · 0 comments
Open

Correct Async usage #1110

dkarlovi opened this issue Mar 17, 2023 · 0 comments

Comments

@dkarlovi
Copy link

Reading #561 it seems using the SDK async should be possible in some way, but it's not exactly clear how.

I have a usecase where I fetch the repo listing and need to fetch additional information for each repo since it's not available in the listing.

@Nyholm in #561 you mention wrapping calls to the client instead of making the HTTP client do async, but in that case the calls to the SDK are blocking themselves, invalidating the idea IIUC.

So what would be the correct way to fetch run requests concurrently? I'm aware I'll need to change my usage, would this mean I create an adapter which converts sync calls to async and then I unwrap the promises in my code? Any hints would be very much appreciated.

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

No branches or pull requests

1 participant