aborted-promise
v0.0.1 cancel abort promise
CancelablePromise
ONLY JAVASRIPT ENGINES WITH INHERITANCE SUPPORT FOR NATIVE OBJECTS!
const CancelablePromise = require('aborted-promise');
const promise = CancelablePromise.all([
new Promise((resolve, reject) => resolve())
]);
new CancelablePromise((resolve, reject) => resolve())
.then(() => console.log('without cancel'));
promise
.then(() => console.log('with cancel'))
.cancel();