Safe Haskell | None |
---|---|
Language | Haskell2010 |
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 a task set, grouping all results received within
every time interval specified by the first parameter as diffUTCTime
.
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.