We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Millisecond arguments are taken as u32 and internally cast (unchecked) to i32. Leading to the timer/interval firing after the wrong duration.
Look for millis as i32, in the examples bellow.
millis as i32,
Example 1.
gloo/crates/timers/src/callback.rs
Lines 98 to 109 in 2c9e776
Example 2.
Lines 200 to 211 in 2c9e776
Use the timer/interval with (u32::MAX / 2) as the duration, they'll fire immediately.
Either
See description.
N/A
The text was updated successfully, but these errors were encountered:
Looks like this is a very old bug in the JS spec?
https://stackoverflow.com/questions/3468607/why-does-settimeout-break-for-large-millisecond-delay-values
Should we patch over this behavior? Since it will be deviating from default JS behavior which is to fire immediately.
Sorry, something went wrong.
No branches or pull requests
Describe the Bug
Millisecond arguments are taken as u32 and internally cast (unchecked) to i32. Leading to the timer/interval firing after the wrong duration.
Look for
millis as i32,
in the examples bellow.Example 1.
gloo/crates/timers/src/callback.rs
Lines 98 to 109 in 2c9e776
Example 2.
gloo/crates/timers/src/callback.rs
Lines 200 to 211 in 2c9e776
Steps to Reproduce
Use the timer/interval with (u32::MAX / 2) as the duration, they'll fire immediately.
Expected Behavior
Either
Actual Behavior
See description.
Additional Context
N/A
The text was updated successfully, but these errors were encountered: