0.0.0 • Published 4 years ago
@ryaninvents/make-abortable v0.0.0
@ryaninvents/make-abortable
Wrap any Promise to allow you to abort it later.
Installation
npm i --save @ryaninvents/make-abortableUsage
const promise = makeAbortable(someOtherPromise);
// then, if you need to cancel...
promise.controller.abort();0.0.0
4 years ago