Skip to main content

Practice ยท 2 of 3

First Working Mirror

Write async function fastestMirror(urls, fetchFn) that starts ALL fetchFn(url) calls concurrently and resolves with the first value that FULFILLS โ€” a rejected attempt must not win the race. If every mirror rejects, rethrow the last rejection.

Difficulty: intermediate

Back to lesson: Practice: Promise Combinators โ€” Practice