diff --git a/.eslintrc.js b/.eslintrc.js index 291436cdc4f9b5..7574e1b4b6c7f7 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -315,6 +315,7 @@ module.exports = { }, globals: { AbortController: 'readable', + AbortSignal: 'readable', Atomics: 'readable', BigInt: 'readable', BigInt64Array: 'readable', diff --git a/doc/api/globals.md b/doc/api/globals.md index 6144c662a22821..079a63be696a71 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -67,6 +67,15 @@ added: v15.0.0 The `AbortSignal` is used to notify observers when the `abortController.abort()` method is called. +#### Static method: `AbortSignal.abort()` + + +* Returns: {AbortSignal} + +Returns a new already aborted `AbortSignal`. + #### Event: `'abort'`