Skip to content

Conversation

simolus3
Copy link
Contributor

This adds nextCrudTransactions(), returning a stream of transactions starting with the oldest one.

By returning a stream, developers can batch multiple transactions in a flexible way, cancelling their stream subscription (usually by breaking out of an await for loop) once the batch has an appropriate size. By still returning transactions, we ensure no partial transactions are uploaded (a typical problem with getNextCrudBatch()).

stevensJourney
stevensJourney previously approved these changes Aug 18, 2025
Copy link
Contributor

@stevensJourney stevensJourney left a comment

Choose a reason for hiding this comment

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

Happy with this from my side

@simolus3 simolus3 merged commit 659bc77 into main Aug 19, 2025
5 checks passed
@simolus3 simolus3 deleted the transaction-stream branch August 19, 2025 07:57
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.

3 participants