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

fix(onErrorResumeNext): observables always finalized before moving to next source #5650

Merged
merged 3 commits into from
Sep 3, 2020

Conversation

benlesh
Copy link
Member

@benlesh benlesh commented Aug 17, 2020

  • Fixes an issue where finalize would be called after all sources were complete
  • Removes superfluous onErrorResumeNext implementation
  • Ensures that invalid sources handed to onErrorResumeNext do not cause an error, and instead resume to the next source
  • Updates types to infer N arguments
  • Removes invalid type signature that allowed a function for no reason
  • Adds dtslint tests for static creation function
  • Adds finalize test to ensure order of finalize calls (as a sanity check)

@benlesh benlesh requested a review from cartant August 17, 2020 17:10
src/internal/observable/onErrorResumeNext.ts Outdated Show resolved Hide resolved
src/internal/operators/onErrorResumeNext.ts Outdated Show resolved Hide resolved
@benlesh benlesh requested a review from cartant August 22, 2020 17:28
… next source

- Fixes an issue where finalize would be called after all sources were complete
- Removes superfluous onErrorResumeNext implementation
- Ensures that invalid sources handed to onErrorResumeNext do not cause an error, and instead resume to the next source
- Updates types to infer N arguments
- Removes invalid type signature that allowed a function for no reason
- Adds dtslint tests for static creation function
- Adds finalize test to ensure order of finalize calls (as a sanity check)
@benlesh
Copy link
Member Author

benlesh commented Aug 31, 2020

Rebased to resolve conflict.

Copy link
Collaborator

@cartant cartant left a comment

Choose a reason for hiding this comment

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

LGTM. Seems to need an API guardian update, though.

@benlesh benlesh merged commit ff68ad2 into ReactiveX:master Sep 3, 2020
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.

2 participants