The async-timer package

[ Tags: bsd3, concurrency, library ] [ Propose Tags ]

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.


[Skip to Readme]

Properties

Versions 0.1.4.0, 0.1.4.1
Dependencies base (>=4.9.1.0 && <5), lifted-async (>=0.9.1.1 && <0.11), lifted-base (>=0.2.3.11 && <0.3), monad-control (>=1.0.1.0 && <1.1), safe-exceptions (>=0.1.5.0 && <0.2), transformers-base (>=0.4.4 && <0.5) [details]
License BSD3
Copyright (c) 2016-2018 Moritz Clasmeier
Author Moritz Clasmeier
Maintainer mtesseract@silverratio.net
Category Concurrency
Home page https://github.com/mtesseract/async-timer#readme
Bug tracker https://github.com/mtesseract/async-timer/issues
Source repo head: git clone https://github.com/mtesseract/async-timer
Uploaded Sun Feb 11 14:27:41 UTC 2018 by mtesseract
Distributions LTSHaskell:0.1.4.0, NixOS:0.1.4.1, Stackage:0.1.4.1, openSUSE:0.1.4.0
Downloads 281 total (42 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2018-02-11 [all 1 reports]
Hackage Matrix CI

Modules

[Index]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for async-timer-0.1.4.1

[back to package description]

async-timer Hackage version Stackage version Build Status

About

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.

Example:

      let conf = defaultTimerConf & timerConfSetInitDelay  500 -- 500 ms
                                  & timerConfSetInterval  1000 -- 1 s
    
      withAsyncTimer conf $ \ timer -> do
        forM_ [1..10] $ \_ -> do
          timerWait timer
          putStrLn "Tick"