abort-controller
abort-controller copied to clipboard
Support for `AbortSignal.timeout`
We can now use the static method AbortSignal.timeout(milliseconds)
which will create a signal that gets canceled after a given duration. Spec: https://github.com/whatwg/dom/pull/1032
It would be great to have this supported.
related: https://github.com/nodejs/node/blob/dabda03ea9ef4baab20e3a377a753174475eb468/lib/internal/abort_controller.js#L169