@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();
Wrap any Promise to allow you to abort it later.
npm i --save @r24y/make-abortable
const promise = makeAbortable(someOtherPromise);
// then, if you need to cancel...
promise.controller.abort();
npm i @r24y/make-abortable
0
0.0.1
MIT
4.44 kB
5