Method Concurrent.race()
- Method race
variant
local
Future
race(array
(Future
)futures
)
variant
local
Future
race(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