wai/auto-update
2014-12-21 11:27:53 +02:00
..
Control Add Control.Debounce kazu-yamamoto/logger#45 2014-10-16 19:53:09 +03:00
test Make auto-update tests more resilient 2014-08-24 17:55:21 +03:00
auto-update.cabal Doc link updates 2014-12-21 11:27:53 +02:00
ChangeLog.md Doc link updates 2014-12-21 11:27:53 +02:00
LICENSE Cabalize and clean up auto-update 2014-07-14 12:59:40 +03:00
README.md Doc link updates 2014-12-21 11:27:53 +02: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 1getCurrentTime1 call, we'd like to have a single worker thread run every second, updating an 1IORef1. 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.