Replies: 1 comment 1 reply
-
|
Found undocumented |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
In the route event handler I need to send response quickly and then do some long running tasks.
Cloudflare would kill the worker after sending response, so I need to call ctx.waituntil before the return.
But how write that code universally so it will work on the node dev server and Cloudflare production environment?
I would like to avoid this:
Beta Was this translation helpful? Give feedback.
All reactions