| Copyright | (c) 2012 Eric Mertens |
|---|---|
| License | BSD3 |
| Maintainer | jeremy@seereason.com |
| Stability | stable |
| Portability | portable |
| Safe Haskell | Safe |
| Language | Haskell2010 |
Network.IRC.Bot.Limiter
Description
A simple rate limiter.
Synopsis
- data Limiter = Limiter {
- limitsIn :: SSem
- limitsOut :: SSem
- limitsDelay :: Int
- limitsThreadId :: ThreadId
- newLimiter :: Int -> Int -> IO Limiter
- limit :: Limiter -> IO ()
Documentation
Constructors
| Limiter | |
Fields
| |
Arguments
| :: Int | max burst length |
| -> Int | delay (in microseconds) |
| -> IO Limiter |
Construct a new rate limit control