The async-timer package

This is a package candidate release! Here you can preview how this package release will appear once published to the main package index (which can be accomplished via the 'maintain' link below). Please note that once a package has been published to the main package index it cannot be undone! Please consult the package uploading documentation for more information.

[maintain]

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

Versions0.1.3.1, 0.1.4.0
Change logNone available
Dependenciesbase (>=4.7 && <5), lifted-async (>=0.9.1.1 && <0.10), lifted-base (>=0.2.3.11 && <0.3), monad-control (>=1.0.1.0 && <1.1) [details]
LicenseBSD3
Copyright2016, 2017 Moritz Schulte
AuthorMoritz Schulte
Maintainermtesseract@silverratio.net
CategoryConcurrency
Home pagehttps://github.com/mtesseract/async-timer
Source repositoryhead: git clone https://github.com/mtesseract/async-timer
UploadedSun Jun 11 11:10:58 UTC 2017 by mtesseract

Modules

Downloads

Maintainers' corner

For package maintainers and hackage trustees


Readme for async-timer-0.1.3.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"