% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/pool.R
\name{pool_stop}
\alias{pool_stop}
\title{Stop the Worker Pool}
\usage{
pool_stop(pool = NULL, timeout = 5)
}
\arguments{
\item{pool}{A \code{shard_pool} object. If NULL, uses the current pool.}

\item{timeout}{Numeric. Seconds to wait for workers to terminate (default 5).
Returns after timeout even if workers are still alive.}
}
\value{
NULL (invisibly).
}
\description{
Terminates all worker processes and releases resources. Waits for workers
to actually terminate before returning.
}
\examples{
\donttest{
p <- pool_create(2)
pool_stop(p)
}
}
