Execute async tasks in parallel while tracking priority, resolving with the highest-priority result that succeeds.
Asked in frontend interviews at Google, Amazon, Uber and 1 more