rfc-0.0.0.17: Robert Fischer's Common library

Safe HaskellNone
LanguageHaskell2010

RFC.Concurrent

Synopsis

Documentation

doConcurrently :: (Traversable t, MonadBaseControl IO m) => t (m a) -> m (t a) Source #

Executes all the IO actions simultaneously and returns the original data structure with the arguments replaced by the results of the execution.

doConcurrently_ :: (Foldable f, MonadBaseControl IO m) => f (m a) -> m () Source #

Executes all the IO actions simulataneously and discards the results.

filterConcurrently :: MonadBaseControl IO m => (a -> Bool) -> [m a] -> m [a] Source #

Executes all the IO actions simultaneously, feeds them into the filter function, and then filters the results.