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

Add support for SuspendingTransacter in QueryPagingSource #4292

Merged
merged 1 commit into from
Jun 20, 2023

Conversation

daio
Copy link
Contributor

@daio daio commented Jun 19, 2023

Fixes #4291

The QueryPagingSource API is extended not only to support a blocking Transacter, but a more generic TransacterBase which includes SuspendingTransacter.
The solution is rather crude, but I think it's better than copying two large blocks of code which only differ by one line.

@daio
Copy link
Contributor Author

daio commented Jun 19, 2023

I hope it's safe enough for the next 2.0 RC because the client code won't need any modifications

Copy link
Collaborator

@AlecKazakova AlecKazakova left a comment

Choose a reason for hiding this comment

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

this seems good to me

@daio
Copy link
Contributor Author

daio commented Jun 19, 2023

Could someone approve builds/tests as well?

@hfhbd hfhbd merged commit d496cbd into cashapp:master Jun 20, 2023
5 checks passed
@daio daio deleted the async-support-for-paging branch June 20, 2023 13:29
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.

No QueryPagingSource available with support for SuspendingTransacter
3 participants