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
[Ensure that execution duration is shorter than interval frequency]
If there is a possibility that your logic could take longer to execute than the interval time, it is recommended that you recursively call a named function using For example, if using setInterval to poll a remote server every 5 seconds, network latency, an unresponsive server, and a host of other issues could prevent the request from completing in its allotted time. As such, you may find yourself with queued up XHR requests that won't necessarily return in order.
In these cases, a recursive setTimeout() pattern is preferred
递归的方式实现
The text was updated successfully, but these errors were encountered: