• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

Control/H09-Jul-2019-667261

test/H09-Nov-2015-199102

ChangeLog.mdH A D09-Jul-2019730 3520

LICENSEH A D09-Nov-20151 KiB2117

README.mdH A D09-Nov-2015675 1410

Setup.hsH A D09-Nov-201546 32

auto-update.cabalH A D09-Jul-20191.3 KiB3935

README.md

1## auto-update
2
3A common problem is the desire to have an action run at a scheduled interval,
4but only if it is needed. For example, instead of having every web request
5result in a new `getCurrentTime` call, we'd like to have a single worker thread
6run every second, updating an `IORef`. However, if the request frequency is
7less than once per second, this is a pessimization, and worse, kills idle GC.
8
9This library allows you to define actions which will either be performed by a
10dedicated thread or, in times of low volume, will be executed by the calling
11thread.
12
13For original use case, see [yesod-scaffold issue #15](https://github.com/yesodweb/yesod-scaffold/pull/15).
14