We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8f84774 commit b4751f4Copy full SHA for b4751f4
src/jsutils/AbortController.ts
@@ -9,11 +9,13 @@ export interface IAbortController {
9
abort: (reason?: any) => void;
10
}
11
12
+// We need to polyfill abort controller in case of Node@14 which doesn't have it
13
/* c8 ignore start */
14
export const AbortController: new () => IAbortController =
15
// eslint-disable-next-line no-undef
16
global.AbortController ||
- class MockAbortController implements IAbortController {
17
+ // This is a dummy implementation that doesn't actually abort anything
18
+ class DummyAbortController implements IAbortController {
19
private _signal: IAbortSignal = {
20
aborted: false,
21
addEventListener: () => null,
0 commit comments