| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Mischief.ECS.World.Par
Synopsis
- par :: MonadSystem w m => [ParSystem a] -> m [a]
- par_ :: MonadSystem w m => [ParSystem a] -> m ()
- parFor :: (MonadSystem w m, Foldable t) => t a -> (a -> ParSystem b) -> m [b]
- parFor_ :: (MonadSystem w m, Foldable t) => t a -> (a -> ParSystem b) -> m ()
- parIterList :: (MonadSystem w m, Foldable t) => t a -> ([a] -> ParSystem b) -> m [b]
Documentation
par :: MonadSystem w m => [ParSystem a] -> m [a] Source #
Receives a list of ParSystems and runs them in parallel.
par_ :: MonadSystem w m => [ParSystem a] -> m () Source #
Receives a list of ParSystems and runs them in parallel. Discards the results.
parFor :: (MonadSystem w m, Foldable t) => t a -> (a -> ParSystem b) -> m [b] Source #
Iterates over a list in parallel.
parFor_ :: (MonadSystem w m, Foldable t) => t a -> (a -> ParSystem b) -> m () Source #
Iterates over a list in parallel and discards the
parIterList :: (MonadSystem w m, Foldable t) => t a -> ([a] -> ParSystem b) -> m [b] Source #