io-throttle-0.1.0: Limit number of IO actions started per second

PortabilityPOSIX
Stabilityexperimental
Maintainerrodrigosetti@gmail.com
Safe HaskellSafe-Inferred

Control.Concurrent.Throttle

Description

 

Synopsis

Documentation

throttleSource

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.