Skip to content

Conversation

@spuun
Copy link
Member

@spuun spuun commented Dec 8, 2025

Because #each calls #rewind on the underlying IO it wasn't possible to nest each calls, because the inner #each will ruin the position for the outer one.

This PR change so position is restored to what it was before #each was called. This is also added other read methods doing iterations such as #any? and #all?.

@spuun spuun requested a review from a team as a code owner December 8, 2025 11:44
@spuun spuun merged commit 0911277 into main Dec 9, 2025
3 checks passed
@spuun spuun deleted the nested-each branch December 9, 2025 07:36
spuun added a commit that referenced this pull request Dec 9, 2025
#31 introduced a bug where an method call triggering an iteration raised an error. This happened if e.g. a delete had been done before the iteration.
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