You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rejection timeout does not trigger until you do a full restart.
What is the expected behavior?
Hot reload should reset all timers and class state to reflect the updated code.
Newly added/changed timeouts should execute as expected.
Previous timers should be canceled and cleaned up.
What do you see instead?
Timers from the previous version persist and execute with outdated logic/durations.
Newly added timeouts fail to trigger.
Class static state becomes corrupted, mixing old and new instances.
Requires a full restart for timeout changes to take effect.
Additional information
Makes iterative async/timer development impossible with --hot. Forces full restarts for timeout-related changes. But you'll only figure that out after spending a few hours trying to figure out why your code that should work isn't. Ran into this twice before realizing that there is definitely a bug in Bun.
The text was updated successfully, but these errors were encountered:
What version of Bun is running?
1.2.1+ce532901c
What platform is your computer?
Darwin 24.3.0 arm64 arm
What steps can reproduce the bug?
Reproduction below:
The rejection timeout does not trigger until you do a full restart.
What is the expected behavior?
What do you see instead?
Additional information
Makes iterative async/timer development impossible with --hot. Forces full restarts for timeout-related changes. But you'll only figure that out after spending a few hours trying to figure out why your code that should work isn't. Ran into this twice before realizing that there is definitely a bug in Bun.
The text was updated successfully, but these errors were encountered: