News for hackers. Stuff that matters.
Re:Promise.prototype.finally by runarberg on Monday October 23, 2017 @11:59AM (#15534138)
Another upside of the proposal is that if you need to reuse the fetch promise somewhere else it will retain the reject status if the promise fails. The proposal is more akin to:

    fetch(...)
      .then(response => {
        closeThatLoader();
        return success(response);
      })
      .catch(error => {
        closeThatLoader();
        throw error;
      });

There are no comments on this comment yet.