0.0.1 • Published 6 years ago
@r24y/make-abortable v0.0.1
@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();
0.0.1
6 years ago