Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
choose :: Show a => [a] -> TransIO a Source #
Converts a list of pure values into a transient task set. You can use the
threads
primitive to control the parallelism.
collect :: Int -> TransIO a -> TransIO [a] Source #
Collect the results of the first n
tasks. Synchronizes concurrent tasks
to collect the results safely and kills all the non-free threads before
returning the results. Results are returned in the thread where collect
is called.
group :: Int -> TransIO a -> TransIO [a] Source #
Collect the results of a task set in groups of n
elements.
groupByTime :: Integer -> TransIO a -> TransIO [a] Source #
Collect the results of a task set, grouping all results received within
every time interval specified by the first parameter as diffUTCTime
.