Safe Haskell | Safe |
---|---|
Language | Haskell98 |
Synopsis
- run :: [IO ()] -> IO ()
- runLimited :: Int -> [IO ()] -> IO ()
- runUnlimited :: [IO ()] -> IO ()
- runException :: Maybe Int -> [IO ()] -> IO ()
Documentation
run :: [IO ()] -> IO () Source #
Execute all actions parallelly
but run at most numCapabilities
threads at once.
Stop when all actions are finished.
If a thread throws an exception this terminates only the throwing thread.
runUnlimited :: [IO ()] -> IO () Source #
Execute all actions parallelly without a bound an the number of threads. Stop when all actions are finished.