The auto-update package

[Tags: library, mit]

API docs and the README are available at http://www.stackage.org/package/auto-update.


[Skip to ReadMe]

Properties

Versions0.1.0.0, 0.1.1.0, 0.1.1.1, 0.1.1.2, 0.1.1.3, 0.1.1.4, 0.1.1.5, 0.1.2, 0.1.2.1, 0.1.2.2
Change logChangeLog.md
Dependenciesbase (==4.*) [details]
LicenseMIT
AuthorMichael Snoyman
Maintainermichael@snoyman.com
CategoryControl
Home pagehttps://github.com/yesodweb/wai
UploadedSun Jul 5 05:05:03 UTC 2015 by MichaelSnoyman
DistributionsDebian:0.1.2.2, FreeBSD:0.1.2.2, LTSHaskell:0.1.2.2, NixOS:0.1.2.2, Stackage:0.1.2.2
Downloads35818 total (854 in last 30 days)
Votes
0 []
StatusDocs available [build log]
Last success reported on 2015-07-05 [all 1 reports]

Modules

[Index]

Downloads

Maintainers' corner

For package maintainers and hackage trustees

Readme for auto-update-0.1.2.2

auto-update

A common problem is the desire to have an action run at a scheduled interval, but only if it is needed. For example, instead of having every web request result in a new getCurrentTime call, we'd like to have a single worker thread run every second, updating an IORef. However, if the request frequency is less than once per second, this is a pessimization, and worse, kills idle GC.

This library allows you to define actions which will either be performed by a dedicated thread or, in times of low volume, will be executed by the calling thread.

For original use case, see yesod-scaffold issue #15.