Safe Haskell | None |
---|---|
Language | Haskell2010 |
- choose :: [a] -> TransientIO a
- choose' :: [a] -> TransientIO a
- collect :: Int -> TransientIO a -> TransientIO [a]
- collect' :: Int -> NominalDiffTime -> NominalDiffTime -> TransientIO a -> TransientIO [a]
- group :: Int -> TransientIO a -> TransientIO [a]
- groupByTime :: Integer -> TransientIO a -> TransientIO [a]
Documentation
choose :: [a] -> TransientIO a Source
slurp a list of values and process them in parallel . To limit the number of processing
threads, use threads
choose' :: [a] -> TransientIO a Source
alternative definition with more parallelism
collect :: Int -> TransientIO a -> TransientIO [a] Source
execute a process and get the first n solutions. if the process end without finding the number of solutions requested, it return the found ones if he find the number of solutions requested, it kill the non-free threads of the process and return It works monitoring the solutions found and the number of active threads. If the first parameter is 0, collect will return all the results
collect' :: Int -> NominalDiffTime -> NominalDiffTime -> TransientIO a -> TransientIO [a] Source
search also between two time intervals. If the first interval has passed and there is no result, it stop after the second interval, it stop unconditionally. It stops as soon as it has enoug result.
group :: Int -> TransientIO a -> TransientIO [a] Source
group the output of a possible multithreaded process in groups of n elements.
groupByTime :: Integer -> TransientIO a -> TransientIO [a] Source