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

timer(x) does not work with very large numbers #6979

Closed
bene-starzengruber opened this issue May 25, 2022 · 1 comment
Closed

timer(x) does not work with very large numbers #6979

bene-starzengruber opened this issue May 25, 2022 · 1 comment

Comments

@bene-starzengruber
Copy link

Describe the bug

timer(Number.MAX_SAFE_INTEGER) emits immediately after subscription
the largest possible number is 47899622768639, from 47899622768640 on it emits immediately

it is a small issue and can easily be workarounded but it makes for a nice default value for optional configurations.

Expected behavior

timer(Number.MAX_SAFE_INTEGER) can be read as "never emit"

Reproduction code

timer(Number.MAX_SAFE_INTEGER) // emits immediately
timer(47899622768640) // emits immediately
timer(47899622768639) // emits "never"

Reproduction URL

https://stackblitz.com/edit/rxjs-kbuxzw?devtoolsheight=60&file=index.ts

Version

7.5.5

Environment

No response

Additional context

No response

@kwonoj
Copy link
Member

kwonoj commented May 26, 2022

Dupe of #3015

@kwonoj kwonoj closed this as completed May 26, 2022
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

No branches or pull requests

2 participants