Wait for deferred execution to complete
deferred_await.RdWait for deferred execution to complete
Examples
# \donttest{
grid <- data.frame(x = 1:4, group = rep(c("A", "B"), 2))
fl <- flow(grid) |>
stage("calc", function(x) x^2, schema = returns(result = dbl())) |>
distribute(dist_local(by = "group"))
deferred <- submit(fl)
deferred_await(deferred, timeout = 600)
# }