# aborted-promise

> Cancelable promise

Latest version **0.0.1** (published 2017-10-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install aborted-promise
pnpm add aborted-promise
yarn add aborted-promise
bun add aborted-promise
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2017-10-11 |
| First published | 2017-10-11 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Igor Katsuba |
| Maintainers | defenderbass |
| Keywords | cancel, abort, promise |

## Links

- npm: https://www.npmjs.com/package/aborted-promise
- Repository: https://github.com/Defenderbass/aborted-promise
- Homepage: https://github.com/Defenderbass/aborted-promise#readme
- Issues: https://github.com/Defenderbass/aborted-promise/issues
- npm.io page: https://npm.io/package/aborted-promise

## Alternatives

- [promise-throttle](https://npm.io/package/promise-throttle.md) — 44.2K weekly downloads
- [@commercetools/sync-actions](https://npm.io/package/@commercetools/sync-actions.md) — 25.1K weekly downloads
- [cwait](https://npm.io/package/cwait.md) — 21.4K weekly downloads
- [@ledgerhq/hw-app-cosmos](https://npm.io/package/@ledgerhq/hw-app-cosmos.md) — 4.2K weekly downloads
- [@financial-times/o-loading](https://npm.io/package/@financial-times/o-loading.md) — 2.8K weekly downloads

## Recent versions

- 0.0.1 (latest) — 2017-10-11

## README

# CancelablePromise

<span style="color:red">ONLY JAVASRIPT ENGINES WITH INHERITANCE SUPPORT FOR NATIVE OBJECTS!</span>

```js
const CancelablePromise = require('aborted-promise');

const promise = CancelablePromise.all([
    new Promise((resolve, reject) => resolve())
]);

new CancelablePromise((resolve, reject) => resolve())
    .then(() => console.log('without cancel'));

promise
    .then(() => console.log('with cancel'))
    .cancel();
```

Say ["Thank you, developer!"](https://www.paypal.me/igorkatsuba)

---
_Source: https://npm.io/package/aborted-promise · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
