powered by
Terminates all worker processes and releases resources. Waits for workers to actually terminate before returning.
pool_stop(pool = NULL, timeout = 5)
NULL (invisibly).
A shard_pool object. If NULL, uses the current pool.
shard_pool
Numeric. Seconds to wait for workers to terminate (default 5). Returns after timeout even if workers are still alive.
# \donttest{ p <- pool_create(2) pool_stop(p) # }
Run the code above in your browser using DataLab