alts.js
Why Promise.race() Sucks
Simply: it gives you no context of who won the race!
var p1 = { ;};var p2 = { ;}; Promise;
Why "alts"?
This function is popular from the clojure world where its used to race channels. Alts comes from the word "alternatives".
Who shot first?
var p1 = { ;}; var p2 = { ;};
Install
<script src="https://cdn.rawgit.com/richardanaya/alts/master/alts.js"></script>
or
npm install alts