All predicates are running in parallel, and the returned match is not guaranteed to be the first one.
async_detect(.x, .p, ..., .limit = Inf)
A deferred value for the result.
Other async iterators:
async_every()
,
async_filter()
,
async_map()
# \donttest{
synchronise(async_detect(
c("https://eu.httpbin.org/status/404", "https://eu.httpbin.org",
"https://eu.httpbin.org/status/403"),
async_sequence(http_head, function(x) x$status_code == 200)
))
#> [1] "https://eu.httpbin.org"
# }