Daily Shaarli

All links of one day in a single page.

April 18, 2024

A tricky pitfall of Promise.all() and a solution

This article aims to describe a tricky situation that can often occur when using Promise.all(), and a simple solution to this problem.

The context

The MDN page for Promise.all() provides the following description of this function:

The Promise.all() static method takes an iterable of promises as input …