`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:
2 Replies