Search
Star
Feedback
Setup for Free
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
`await new Promise((resolve) => setTimeout(resolve, 1000))` is not awaiting - Cloudflare Developers
CD
Cloudflare Developers
•
2y ago
•
2 replies
Luka
`await new Promise((resolve) => setTimeout(resolve, 1000))` is not awaiting
Hey
, I
'm struggling to understand why
await new Promise((resolve) => setTimeout(resolve, 1000))
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
:
Cloudflare Developers
Join
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Similar Threads
Incorrect type for Promise: the Promise did not resolve to 'Response'.
CD
Cloudflare Developers / workers-and-pages-help
3y ago
Supabase : Uncaught (in promise) TypeError: Incorrect type for Promise: the Promise did not resolve
CD
Cloudflare Developers / workers-and-pages-help
15mo ago
Could not resolve
CD
Cloudflare Developers / workers-and-pages-help
3y ago
Promise not working in JS worker
CD
Cloudflare Developers / workers-and-pages-help
2y ago