We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2302e82 commit a8fd5b9Copy full SHA for a8fd5b9
packages/node/src/lib/abort.ts
@@ -61,7 +61,7 @@ class AbortController {
61
* @param timeoutMs - Set a request timeout, after which the request is cancelled.
62
*/
63
export const abortSignalAfterTimeout = (timeoutMs: number) => {
64
- if (detectRuntime() === 'web-worker') {
+ if (detectRuntime() === 'cloudflare-worker') {
65
return [] // TODO: this is broken in cloudflare workers, otherwise results in "A hanging Promise was canceled..." error.
66
}
67
const ac = new (global.AbortController || AbortController)()
0 commit comments