open-index/open-npm huggingface dataset:
npm package: @r24y/make-abortable
Description: Turn any promise into an abortable promise
Author: Ryan Kennedy
Latest version: 0.0.1

# @r24y/make-abortable

Wrap any Promise to allow you to abort it later.

## Installation

```bash
npm i --save @r24y/make-abortable
```

## Usage

```js
const promise = makeAbortable(someOtherPromise);

// then, if you need to cancel...
promise.controller.abort();
```