Blog
I’ll add, that if you separately want to know each value you can. Simply creat each promise without awaiting them. Promise.race to get the first, and then each promise could be awaited individually to get the resolved values each (or via Promise.all).
Even though the first was already resolved, it should be resolvable to the same result in a subsequent call.