kotlin-stdlib / kotlin.js / Promise / race race JS 1.1 fun < S > race ( promise : Array < out Promise < S > > ) : Promise < S > (source)