Comments (2)
Hi. Could you elaborate a bit on your use case? I’ll add setTimeout, as I know that cloudflare does support it, but I’m curious, as I’m not sure cloudflare guarantees that it will wait for your callback to fire. IAC I’ll fix this in a day or two.
from cloudflare-worker-local.
@gja Cloudflare supports construct like await sleep(1000)
for the function above the same way as you can await fetch()
when fetching external resources from cloudflare workers scripts.
My use case is to wait 2 seconds before answering Nexmo webhook what would simulate 2s delay before picking up the call
from cloudflare-worker-local.
Related Issues (20)
- Script called two times HOT 1
- Example worker modifies a Response object HOT 2
- request entity too large error HOT 3
- 1.9.1 release HOT 2
- Set cf config values in request headers
- Support FetchEvent.passThroughOnException() HOT 1
- Response.redirect is not a function HOT 2
- Move all program arguments into worker.toml config file HOT 9
- Refactor request handling
- Google drive index script is not working HOT 4
- npm install -g cloudflare-worker-local error HOT 3
- MINIO_PORT env var doesn't work HOT 3
- ReferenceError: process is not defined HOT 2
- Need support for byob in getReader() HOT 1
- Binary site assets not transferring correctly HOT 1
- does not support ES module worker HOT 1
- Not possible to set cf-ipcountry header, it is always DEV HOT 2
- Getting error while running google index script HOT 2
- Response body can be falsy, test throws error
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudflare-worker-local.