Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- choose :: [a] -> TransIO a
- choose' :: [a] -> TransIO a
- chooseStream :: [a] -> TransIO (StreamData a)
- collect :: Int -> TransIO a -> TransIO [a]
- collect' :: Int -> Int -> TransIO a -> TransIO [a]
- group :: Int -> TransIO a -> TransIO [a]
- groupByTime :: Monoid a => Int -> TransIO a -> TransIO a
- burst :: Int -> TransIO a -> TransIO (StreamData a)
Documentation
choose :: [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.
chooseStream :: [a] -> TransIO (StreamData a) Source #
transmit the end of stream
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.