Quarks Technosoft interview question

What does promise.race() method do?