Method Concurrent.race()
- Method
race
variantlocalFuturerace(array(Future)futures)
variantlocalFuturerace(Future...futures)- Description
JavaScript Promise API equivalent of first_completed().
- Note
The returned Future does NOT have any state (eg backend) propagated from the
futures. This must be done by hand.- See also
first_completed(),
Promise.first_completed()https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Promise