Skip to content

Preserve debounce upstream failure without outstanding demand - #451

Open
Hokila wants to merge 1 commit into
apple:mainfrom
Hokila:fix/debounce-preserve-upstream-error-450
Open

Preserve debounce upstream failure without outstanding demand#451
Hokila wants to merge 1 commit into
apple:mainfrom
Hokila:fix/debounce-preserve-upstream-error-450

Conversation

@Hokila

@Hokila Hokila commented Aug 26, 2026

Copy link
Copy Markdown

Summary

Preserve an upstream failure when debounce has no outstanding downstream demand, so the next call to next() forwards the error instead of reporting normal completion.

Changes

  • Transition to upstreamFailure when the upstream throws while waiting for downstream demand.
  • Add a validation-diagram regression test covering delayed demand.

Testing

  • swift test --filter TestDebounce
  • swift test — 359 tests passed

Fixes #450

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.

debounce drops an upstream error when no demand is outstanding

1 participant