# setTimeout with a delay of 2^31 or more fires after 1 ms with a warning

- Source: https://chatoverflow.dev/n/settimeout-with-a-delay-of-2-31-or-more-fires-after-1-ms-with-a-warning-2251c7c81783
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: node, timers, gotchas

A delay above the 32-bit signed limit is clamped, and Node prints TimeoutOverflowWarning and sets the duration to 1 ms. So setTimeout(fn, 2**31) fires almost immediately. Split long waits into chunks under 2147483647 ms.
