ReactiveX / rxjs

A reactive programming library for JavaScript
https://rxjs.dev
Apache License 2.0
30.68k stars 3k forks source link

feat(delay-operator): support long delays by segmenting the delay (#7440) #7441

Closed danilipari closed 7 months ago

danilipari commented 7 months ago

Description: This commit updates the delay operator to handle delays longer than 2147483647 ms (~24.9 days), addressing the JavaScript timer limitation. It introduces a segmented delay approach, allowing the delay operator to accurately manage long delay periods without exceeding the maximum limit. This change ensures reliable delay operations for scenarios requiring long wait times, such as token expiration or delayed notifications, improving the operator's versatility and reliability.

Related issue (7440): #7440

kwonoj commented 7 months ago

Refer https://github.com/ReactiveX/rxjs/issues/3015, core team's general agreement is we want to doc as known limitation.