Skip to content

Commit

Permalink
Add abort-controller
Browse files Browse the repository at this point in the history
  • Loading branch information
melikhov-dev committed Aug 2, 2021
1 parent 2dedf8f commit 678d797
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions abort-controller/example3.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ promiseOne.then((result) => {
console.log("finished");
}).catch((e) => {
}).finally(() => {
cancelTimeout.abort();
})

const timeout = async () => {
Expand Down

0 comments on commit 678d797

Please sign in to comment.