on wai-conduit/3.0.0.2 help sign in
13 lines 675 B history raw
1## auto-update
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 1getCurrentTime1 call, we'd like to have a single worker thread
6run every second, updating an 1IORef1. However, if the request frequency is
7less than once per second, this is a pessimization, and worse, kills idle GC.
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.
13For original use case, see [yesod-scaffold issue #15](https://github.com/yesodweb/yesod-scaffold/pull/15).