If I have two promises A and B, only one of which will succeed, how can I get whichever one fulfills successfully? I'm looking for something similar to Promise.race
, but which will return only the first promise that fulfills. I'm using promises from ES6.