aoi.js icon indicating copy to clipboard operation
aoi.js copied to clipboard

Longer max duration for $setTimeout

Open Modyes opened this issue 1 year ago • 7 comments

Featuring Type

Function

So, what is it about?

$setTimeout ends instantly if you set a duration above 21d which is kinda short so I was hoping if we can extend the maximum possible duration for $setTimeout to maybe a year or more? or maybe if it's not possible for $setTimeout to have that, is there any other alternative way? like a code or an addition function, maybe loops.. idk you guys are the experts in this

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

Modyes avatar Feb 13 '24 08:02 Modyes

nvm.

Faf4a avatar Feb 13 '24 11:02 Faf4a

Well I'm on 6.7.5 (github)

Modyes avatar Feb 14 '24 00:02 Modyes

bump?

Modyes avatar Feb 23 '24 08:02 Modyes

this can be fixed with some tricky stuff but

the limitation is basically the 32 bit int limit meaning 2147483647ms or about 25 days

Faf4a avatar Feb 24 '24 10:02 Faf4a

what does this mean? so we can't have longer than 25 days even after the fix?

Modyes avatar Feb 26 '24 12:02 Modyes

after the fix you could yes

Faf4a avatar Feb 27 '24 21:02 Faf4a

can't it be longer than that?

Modyes avatar Mar 01 '24 08:03 Modyes

can't it be longer than that?

Pushed a fix to the github version, should work now.

I'll reopen if any bugs occur.

Faf4a avatar Mar 02 '24 14:03 Faf4a