In Javascript, setTimeout has a limit. If the ms exceeds that, the setTimeout call will be after 1 ms.
This is not an expected behavior. For example, I would like to pass in Infinity to have that value stale for a very long time. Currently, passing Infinity will have no effect.
In Javascript, setTimeout has a limit. If the ms exceeds that, the setTimeout call will be after 1 ms.
This is not an expected behavior. For example, I would like to pass in Infinity to have that value stale for a very long time. Currently, passing Infinity will have no effect.
ref: https://stackoverflow.com/questions/3468607/why-does-settimeout-break-for-large-millisecond-delay-values