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

# @ryaninvents/make-abortable

Wrap any Promise to allow you to abort it later.

## Installation

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

## Usage

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

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