abort-controller icon indicating copy to clipboard operation
abort-controller copied to clipboard

An implementation of WHATWG AbortController interface.

Results 23 abort-controller issues
Sort by recently updated
recently updated
newest added

The web spec was changed in https://github.com/whatwg/dom/pull/1027 to support a reason when aborting.

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.

Using latest version of all packages at time of writing: `package.json`: ``` { "dependencies": { "@types/node": "^17.0.42", "abort-controller": "^3.0.0", "typescript": "^4.7.3" } } ``` `main.ts`: ``` import AbortController from "abort-controller";...

Currently, the two ways of consuming this package have downsides: 1. The `abort-controller` export relies on the native implementation in browsers, which will not work in older browsers 2. The...

I'm seeing breakages with Webpack, and several other issues and forks seem to indicate issues with bundlers. My understanding, which is shallow, is that at one point it was recommended...

`browser.js` is missing the `AbortController` named export. The `AbortController` named export exists in `src/abort-controller.ts` (and `browser.mjs`), however, is missing in `browser.js`. This results in an inconsistency. Code that successfully runs...

If you currently attempt to import AbortController via `const { AbortController } = require('abort-controller')`, it will work in Node but be undefined in browsers. This updates browser.js to be consistent...

So I had an idea to use Abort Controller to stop long running async operations (basically for awaited promises put timeout). However it seems like it has no effect at...

Node 15 added `AbortController` and `AbortSignal` to the `global` scope. This PR adds a `./node.js` file that will use node.js globals if available and else falls back to the shim....