mischief-ecs
Safe HaskellNone
LanguageGHC2024

Mischief.ECS.World.Par

Synopsis

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 #