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

timeout() throws exception when source is synchronous #5746

Closed
kwonoj opened this issue Sep 23, 2020 · 0 comments · Fixed by #5747
Closed

timeout() throws exception when source is synchronous #5746

kwonoj opened this issue Sep 23, 2020 · 0 comments · Fixed by #5747

Comments

@kwonoj
Copy link
Member

kwonoj commented Sep 23, 2020

Bug Report

Current Behavior
A clear and concise description of the behavior.

Reproduction

import {of} from 'rxjs';
import {timeout} from 'rxjs/operators';

of(1).pipe(timeout(100)).subscribe((x) => console.log(x));

This raises

Cannot read property 'unsubscribe' of undefined 

now, previously handled.

Expected behavior
A clear and concise description of what you expected to happen (or code).

Environment

  • Runtime: [e.g. Node v${x}, Chrome v${x}]
  • RxJS version:
  • (If bug is related) Loader, build configuration: [e.g webpack, angular-cli version, config]

Possible Solution

Additional context/Screenshots
Add any other context about the problem here. If applicable, add screenshots to help explain.

kwonoj added a commit to kwonoj/rxjs that referenced this issue Sep 23, 2020
kwonoj added a commit to kwonoj/rxjs that referenced this issue Sep 23, 2020
kwonoj added a commit to kwonoj/rxjs that referenced this issue Sep 23, 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 a pull request may close this issue.

1 participant