@r24y/make-abortable

0.0.1 • Public • Published

@r24y/make-abortable

Wrap any Promise to allow you to abort it later.

Installation

npm i --save @r24y/make-abortable

Usage

const promise = makeAbortable(someOtherPromise);

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

Readme

Keywords

none

Package Sidebar

Install

npm i @r24y/make-abortable

Weekly Downloads

0

Version

0.0.1

License

MIT

Unpacked Size

4.44 kB

Total Files

5

Last publish

Collaborators

  • r24y