diff --git a/doc/api/globals.md b/doc/api/globals.md index c81a49ab3ff09d..702d06f2aa5f10 100644 --- a/doc/api/globals.md +++ b/doc/api/globals.md @@ -98,6 +98,17 @@ changes: Returns a new already aborted `AbortSignal`. +#### Static method: `AbortSignal.timeout(delay)` + + + +* `delay` {number} The number of milliseconds to wait before triggering + the AbortSignal. + +Returns a new `AbortSignal` which will be aborted in `delay` milliseconds. + #### Event: `'abort'`