Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Pools
Create a new thread pool with one worker for every capability (see
getNumCapabilities
).
globalThreadPool :: Pool Source #
A statically allocated thread pool.
scalePool :: Pool -> Int -> IO () Source #
When the target size is smaller than the original size, this mercilessly and immediately kills some workers. If you have jobs running, they may well be cancelled.