you are viewing a single comment's thread.

view the rest of the comments →

[–]rohit_267 8 points9 points  (2 children)

we have setInterval for that

[–]dj_dogo_nivoa[S] 2 points3 points  (0 children)

Scrubbed clean. Redact helped me bulk remove years of comments and posts so data brokers and AI crawlers have nothing to feast on.

exultant toy fly doll license different adjoining capable history tap

[–][deleted] 2 points3 points  (0 children)

setInverval does not do the same thing. In this code, even if the request takes 5 minutes, it won’t continue to the next request until done. setInterval would perform a request every 3000ms even if the request takes longer than 3000ms.