wai/auto-update
2016-05-09 08:43:16 +03:00
..
Control Version bump for #547 2016-05-09 08:43:16 +03:00
test Make auto-update tests more resilient 2014-08-24 17:55:21 +03:00
auto-update.cabal Version bump for #547 2016-05-09 08:43:16 +03:00
ChangeLog.md Version bump for #547 2016-05-09 08:43:16 +03:00
LICENSE Cabalize and clean up auto-update 2014-07-14 12:59:40 +03:00
README.md fixing typos. 2015-06-08 11:50:34 +09:00
Setup.hs Cabalize and clean up auto-update 2014-07-14 12:59:40 +03:00

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.