Wait until all promises complete even if some rejected
Update, you probably want to use the built-in native Promise.allSettled: Promise.allSettled([promise]).then(([result]) => { //reach here regardless // {status: “fulfilled”, value: 33} }); As a fun fact, this answer below was prior art in adding that method to the language :] Sure, you just need a reflect: const reflect = p => p.then(v => ({v, status: … Read more