| pool_dispatch | R Documentation |
Sends a task to a specific worker and waits for the result.
pool_dispatch(
worker_id,
expr,
envir = parent.frame(),
pool = NULL,
timeout = 3600
)
worker_id |
Integer. Worker to dispatch to. |
expr |
Expression to evaluate. |
envir |
Environment containing variables needed by expr. |
pool |
A |
timeout |
Numeric. Seconds to wait for result (default 3600). |
The result of evaluating expr in the worker.
p <- pool_create(2)
pool_dispatch(1, quote(1 + 1), pool = p)
pool_stop(p)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.