Promise.taggedRace

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Promise.taggedRace

Sebastian Malton
This would act just like Promise.race but have as its resolved value an index field that says which promise finished first by its index of the array. 

Also this would accept a boolean value as a second parameter which if true would reject immediately on an empty list with a suitable error. 

Sebastian Malton


_______________________________________________
es-discuss mailing list
[hidden email]
https://mail.mozilla.org/listinfo/es-discuss