-
Notifications
You must be signed in to change notification settings - Fork 3k
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 operator does not accept custom Error to throw #2257
Comments
Yes, it has been deprecated but document has not updated yet. (https://github.com/ReactiveX/rxjs/blob/master/CHANGELOG.md#features), due to interface is not clear enough brings confusions (https://github.com/ReactiveX/rxjs-core-notes/blob/master/2016-12/december-05.md). |
@kwonoj ACK! Should this issue then not be kept open as a reminder to update the documentation? |
For people who stumble on this later, you can use |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
The documentation of rxjs5 states that you can still call
.timeout(100, new MyError(), scheduler)
but this seems not to be the case.RxJS version:
5.0.2 (npm)
Code to reproduce:
Expected behavior:
the console.log is executed using the custom error
Error
in this caseActual behavior:
timeout hit TypeError: this.scheduler.schedule is not a function
Additional information:
The text was updated successfully, but these errors were encountered: