Learn R Programming

shard (version 0.1.0)

pool_stop: Stop the Worker Pool

Description

Terminates all worker processes and releases resources. Waits for workers to actually terminate before returning.

Usage

pool_stop(pool = NULL, timeout = 5)

Value

NULL (invisibly).

Arguments

pool

A shard_pool object. If NULL, uses the current pool.

timeout

Numeric. Seconds to wait for workers to terminate (default 5). Returns after timeout even if workers are still alive.

Examples

Run this code
# \donttest{
p <- pool_create(2)
pool_stop(p)
# }

Run the code above in your browser using DataLab