3 ms·You can use Promise.race to wait for the first resolved promise.by vbezhenar 5y agoYou can use Promise.race to wait for the first resolved promise.