this post was submitted on 08 Jul 2023
8 points (90.0% liked)
JavaScript
1982 readers
1 users here now
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It’s the while loop that may be blocking the event loop and slowing the execution.
This also happens when I create recursive asynchronous function that awaits the sleep and then itself. I have no clue what the problem is in that case.