`await new Promise((resolve) => setTimeout(resolve, 1000))` is not awaiting
Hey, I'm struggling to understand why
await new Promise((resolve) => setTimeout(resolve, 1000))
is not sleeping for one second.
Say I have endpoint that is supposed to sleep for 1 second and retry but instead it will just go as if one sec was one ms:![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1211325962969555095/image.png)
2 Replies