Module

Effect.Aff.Parallel

Package
purescript-aff-parallel
Repository
eheitherd/purescript-aff-parallel

#parallelize Source

parallelize :: forall a. Int -> Array (Aff a) -> Aff (Array a)

Parallelize asynchronous computations with specified number of fibers. The results of computations are stored in an array in the same order. If one computation fails, all remaining computations are canceled.

#parallelize_ Source

parallelize_ :: forall a. Int -> Array (Aff a) -> Aff Unit

Parallelize asynchronous computations with specified number of fibers. The results of computations are ignored, except for effects. If one computation fails, all remaining computations are canceled.