minus-squaremasnun@lemmy.worldtoJavaScript@programming.dev•Why is the sleep duration taking so long in some cases?linkfedilinkEnglisharrow-up2arrow-down3·1 year agoIt’s the while loop that may be blocking the event loop and slowing the execution. linkfedilink
It’s the while loop that may be blocking the event loop and slowing the execution.