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

Support paginated methods in async client #1615

Merged
merged 8 commits into from
Aug 16, 2023
Merged

Conversation

therve
Copy link
Contributor

@therve therve commented Aug 7, 2023

To be able to support both sync and async in paginated methods, we need to push the pagination logic to the client so that the coroutine handling can be handled there and the top level method retains the lower level returned type. This refactors it a bit to be able to do that.

To be able to support both sync and async in paginated methods, we need
to push the pagination logic to the client so that the coroutine
handling can be handled there and the top level method retains the lower
level returned type. This refactors it a bit to be able to do that.
@therve therve requested a review from a team as a code owner August 7, 2023 13:11
@therve therve force-pushed the therve/async-pagination branch from eff75ab to 18c73a9 Compare August 8, 2023 09:42
@therve therve merged commit e3d89d9 into master Aug 16, 2023
@therve therve deleted the therve/async-pagination branch August 16, 2023 14:33
github-actions bot pushed a commit that referenced this pull request Aug 16, 2023
* Support paginated methods in async client

To be able to support both sync and async in paginated methods, we need
to push the pagination logic to the client so that the coroutine
handling can be handled there and the top level method retains the lower
level returned type. This refactors it a bit to be able to do that.

* Less duplication

* Remove some more duplication

* Remove specific method

* Don't pass parameters that breaks data handling e3d89d9
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants