Provides API for timer based execution of IO actions

Version on this page:
LTS Haskell 11.1:
Stackage Nightly 2018-03-21:
Latest on Hackage:

See all snapshots async-timer appears in

BSD3 licensed by Moritz Clasmeier
Maintained by

Module documentation for

async-timer Hackage version Stackage version Build Status


This is a lightweight package built on top of the async package providing easy to use periodic timers. This can be used for executing IO actions periodically.


      let conf = defaultTimerConf & timerConfSetInitDelay  500 -- 500 ms
                                  & timerConfSetInterval  1000 -- 1 s
      withAsyncTimer conf $ \ timer -> do
        forM_ [1..10] $ \_ -> do
          timerWait timer
          putStrLn "Tick"
Depends on 5 packages:
Used by 1 package:
comments powered byDisqus