Creates a thread pool with the specified number of worker threads.
| poolSize |
the number of worker threads (must be > 0). |
|
Result.ok(pool), or Result.error(WorkerPoolError.INVALID_ARGUMENT) when poolSize is not positive. |