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(timeout): defer error creation until timeout occurs #5497

Merged
merged 1 commit into from
Jul 5, 2020

Conversation

kwonoj
Copy link
Member

@kwonoj kwonoj commented Jun 15, 2020

Description:

This PR try to change timing behavior of timeout operator creating its timeout error object. Instead of eagerly creating new object each time operator is being called, now it defers creation until timeout's being raised.
Initially thought of using constant timeouterror object, but that'll make fixed stack instead of actual point of error being thrown.

Related issue (if exists):

@kwonoj kwonoj requested a review from benlesh June 15, 2020 23:18
@benlesh benlesh merged commit 3be9840 into master Jul 5, 2020
benlesh pushed a commit to benlesh/rxjs that referenced this pull request Jul 5, 2020
@kwonoj kwonoj deleted the fix-timeout-error-retainer branch August 13, 2021 03:35
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.

timeout crates & retain timeoutError object eagerly
2 participants