Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Simple rate limiting combinator.
Documentation
newRateLimit :: TimeSpec -> IO RateLimit Source
Create a new rate limiter with the specified delay.
The rate limiter is thread-safe, and can be shared between threads.