DEV Community

Discussion on: Why not to use setInterval

Collapse
 
prafullsalunke profile image
Prafull Salunke

I get what you are trying to say here. A small mistake here though. The timeout in fakeCallToServer should have been a random from 200ms to 15 sec to mimic an actual api response scenario.