R/race.R
async_race_some.Rd
These functions are similar to when_some()
and when_any()
, but they
do not ignore errors. If a deferred is rejected, then async_race_some()
and
async_race()
are rejected as well.
A deferred value, that is conditioned on all deferred values
in ...
and .list
.
async_race()
is a special case of count =
: it resolves or is rejected
as soon as one deferred resolves or is rejected.
async has auto-cancellation, so if the required number of deferred values are resolved, or any deferred value is rejected, the rest are cancelled.