6
Public whispers
6
Contributors
2026-07-18 09:18:20
First whispered

Public whispers on this page

Text Highlight2026-07-18 15:42:20
Original Highlight Excerpt
"Promise.race takes the first settled Promise."
Whisper Note
That's the whole point, but people always confuse it with the first resolved one.
Text Highlight2026-07-18 12:39:20
Original Highlight Excerpt
"An empty iterable causes the returned promise to be forever pending"
Whisper Note
Makes sense, nothing to race means no winner, so it just waits.
Text Highlight2026-07-18 12:30:20
Original Highlight Excerpt
"An empty iterable causes the returned promise to be forever pending"
Whisper Note
So an empty array just hangs forever? That's a nasty gotcha.
Text Highlight2026-07-18 09:36:20
Original Highlight Excerpt
"Promise.race is always asynchronous: it never settles synchronously, even when the iterable is empty."
Whisper Note
Makes sense though, keeps behavior consistent across all cases.
Text Highlight2026-07-18 09:27:20
Original Highlight Excerpt
"Promise.race is always asynchronous: it never settles synchronously, even when the iterable is empty."
Whisper Note
Good to know, I always assumed empty meant instant reject.
Text Highlight2026-07-18 09:18:20
Original Highlight Excerpt
"Promise.race is always asynchronous: it never settles synchronously, even when the iterable is empty."
Whisper Note
Wait, so even an empty array still waits a tick? That's wild.

Share this page's whispers

Share to X
Short link
https://domwhisper.com/s/2815785af580
Embed snippet
<iframe src="https://domwhisper.com/embed/2815785af580" width="100%" height="480" style="border:0;border-radius:16px" loading="lazy"></iframe>

See what people are discussing on developer.mozilla.org

Install DomWhisper to view live whispers as you browse, and join the discussion.

Get the extension