Promise finally

Raul-Sebastian Mihăilă raul.mihaila at gmail.com
Fri Feb 23 15:19:00 UTC 2018


In other words

```js
Promise.resolve().finally(() => {}).then(() => { console.log(1); });
Promise.resolve().then(() => {}).then(() => { console.log(2); }).then(() =>
{ console.log(3); });
```

prints 2, then 3, then 1.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20180223/5568ab43/attachment.html>


More information about the es-discuss mailing list