Sends a task to a specific worker and waits for the result.
Usage
pool_dispatch(
worker_id,
expr,
envir = parent.frame(),
pool = NULL,
timeout = 3600
)Examples
# \donttest{
p <- pool_create(2)
pool_dispatch(1, quote(1 + 1), pool = p)
#> [1] 2
pool_stop(p)
# }