async_race_some | R Documentation |
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.
async_race_some(count, ..., .list = list())
async_race(..., .list = list())
count |
Number of deferred values that need to resolve. |
... |
Deferred values. |
.list |
More deferred values. |
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.
A deferred value, that is conditioned on all deferred values
in ...
and .list
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.