rfc-0.0.0.25: Robert Fischer's Common library

Safe HaskellNone
LanguageHaskell2010

RFC.Concurrent

Synopsis

Documentation

doConcurrently :: (Traversable t, MonadUnliftIO 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, MonadUnliftIO m) => f (m a) -> m () Source #

Executes all the IO actions simulataneously and discards the results.

filterConcurrently :: (Traversable t, Applicative t, Monoid (t a), MonadUnliftIO m) => (a -> Bool) -> t (m a) -> m (t a) Source #

Executes all the IO actions simultaneously and then filters the results based on the filter function.