An interface for worker pools.
Gets a worker from the pool. The worker is marked as busy and will only be reused if the pool runs out of idle workers. The worker will be automatically marked as idle once no references to the returned worker remain.
Gets the number of workers currently running in the pool.
Gets the number of workers that are currently idle.
Gets the maximum number of workers the pool may spawn to handle concurrent tasks.
Checks if the worker is running.
Checks if the worker is currently idle.
Immediately kills the context.