Forwarding you to

Seva Zaikov - How to Cancel Your Promise

In ES2015, new version of EcmaScript, standart of JavaScript, we got new asynchronous primitive Promise . It is a very powerful concept, which allows us to avoid notoriously famous callback hell . For instance, several async actions easily cause code like that: