this post was submitted on 08 Jul 2023
6 points (80.0% liked)

JavaScript

1982 readers
1 users here now

founded 1 year ago
MODERATORS
 

Hi, I need to create a infinite (but breakable) cycle where I can slow down the cycle by awaiting promises inside. While cycle should be able to do this, but as you can see in the image, the duration is all over the place.

Why is this happening? Is there a way to make it close to the original sleep duration?

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here