| Portability | POSIX |
|---|---|
| Stability | experimental |
| Maintainer | rodrigosetti@gmail.com |
| Safe Haskell | Safe-Inferred |
Control.Concurrent.Throttle
Description
Documentation
Arguments
| :: Int | number of tasks per second (TPS) |
| -> [IO a] | the tasks to run concurrently but limited by TPS |
| -> IO [a] | the tasks results |
Limit the number of tasks started per second. throttle will run all
actions concurrently but only starting a certain number per second. It
will wait for all tasks and return the results in a list.