@ryaninvents/make-abortable

0.0.0 • Public • Published

@ryaninvents/make-abortable

Wrap any Promise to allow you to abort it later.

Installation

npm i --save @ryaninvents/make-abortable

Usage

const promise = makeAbortable(someOtherPromise);

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

Readme

Keywords

none

Package Sidebar

Install

npm i @ryaninvents/make-abortable

Weekly Downloads

0

Version

0.0.0

License

MIT

Unpacked Size

4.11 kB

Total Files

4

Last publish

Collaborators

  • ryaninvents