Skip to content

Scan error improvement - #11

Merged
ildella merged 2 commits into
masterfrom
scan-error-improvement
Aug 22, 2026
Merged

Scan error improvement#11
ildella merged 2 commits into
masterfrom
scan-error-improvement

Conversation

@ildella

@ildella ildella commented Aug 22, 2026

Copy link
Copy Markdown
Owner

No description provided.

Errors thrown by the iteration itself (async generator dying mid-stream)
no longer bypass error strategies and destroy collected progress.

- series/scan (+reduce, filter via delegation) and sync twins gain an
  additive sourceErrors field ({error, index}) and onSourceError option
- per strategy: collect preserves results; failFast clears results but
  keeps accumulator/value; failLate merges contexts into failure.errors;
  skip ignores them; rethrow throws with no callbacks
- cleanup locked in with tests: generator finally runs, take closes the
  iterator, a throwing finally supersedes the source error
@ildella
ildella merged commit b8b3f1b into master Aug 22, 2026
1 check passed
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.

1 participant