auto-update: Efficiently run periodic, on-demand actions
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.
[Skip to Readme]
Downloads
- auto-update-0.1.1.2.tar.gz [browse] (Cabal source package)
- Package description (as included in the package)
Maintainer's Corner
For package maintainers and hackage trustees
Candidates
- No Candidates
| Versions [RSS] | 0.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, 0.1.3, 0.1.3.1, 0.1.4, 0.1.4.1, 0.1.5, 0.1.6, 0.2.0, 0.2.1, 0.2.2, 0.2.4, 0.2.5, 0.2.6 (info) |
|---|---|
| Dependencies | base (>=4 && <5) [details] |
| License | MIT |
| Author | Michael Snoyman |
| Maintainer | michael@snoyman.com |
| Uploaded | by MichaelSnoyman at 2014-08-24T14:56:36Z |
| Category | Control |
| Home page | https://github.com/yesodweb/wai |
| Distributions | Arch:0.1.6, Debian:0.1.6, Fedora:0.2.6, FreeBSD:0.1.2.2, LTSHaskell:0.2.6, NixOS:0.2.6, Stackage:0.2.6, openSUSE:0.2.6 |
| Reverse Dependencies | 30 direct, 4162 indirect [details] |
| Downloads | 109054 total (94 in the last 30 days) |
| Rating | (no votes yet) [estimated by Bayesian average] |
| Your Rating | |
| Status | Docs available [build log] Successful builds reported [all 1 reports] |