Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Internal module providing a pool of threads.
Documentation
type ThreadPoolEntry m a b = (m a, a -> IO b, Either SomeException b -> m StopFlag) Source #
data ThreadPool m a b Source #
ThreadPool | |
|
sequentialThreadPool :: MonadIO m => ThreadPool m a b Source #
parallelThreadPool :: MonadIO m => Int -> m (ThreadPool m a b) Source #