@r24y/make-abortable
v0.0.1
Published
Turn any promise into an abortable promise
Readme
@r24y/make-abortable
Wrap any Promise to allow you to abort it later.
Installation
npm i --save @r24y/make-abortableUsage
const promise = makeAbortable(someOtherPromise);
// then, if you need to cancel...
promise.controller.abort();