Skip to content

Commit

Permalink
Fixed bug with promise cancellation for all method
Browse files Browse the repository at this point in the history
  • Loading branch information
DigitalBrainJS committed Oct 14, 2020
1 parent afa10c0 commit 011ff3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/c-promise.js
Original file line number Diff line number Diff line change
Expand Up @@ -1022,7 +1022,7 @@ class CPromise extends Promise {
const cancel= (reason)=>{
const {length}= pending;
for (let i = 0; i < length; i++) {
iterable[i].cancel(reason);
pending[i].cancel(reason);
}
}

Expand Down

0 comments on commit 011ff3f

Please sign in to comment.