ircbot-0.6.5: A library for writing IRC bots

Copyright(c) 2012 Eric Mertens
LicenseBSD3
Maintainerjeremy@seereason.com
Stabilitystable
Portabilityportable
Safe HaskellSafe
LanguageHaskell98

Network.IRC.Bot.Limiter

Description

A simple rate limiter.

Synopsis

Documentation

data Limiter Source

Constructors

Limiter 

Fields

limitsIn :: SSem
 
limitsOut :: SSem
 
limitsDelay :: Int
 
limitsThreadId :: ThreadId
 

newLimiter Source

Arguments

:: Int

max burst length

-> Int

delay (in microseconds)

-> IO Limiter 

Construct a new rate limit control

limit :: Limiter -> IO () Source

Execute this before sending