./devel/hs-auto-update, Efficiently run periodic, on-demand actions

[ CVSweb ] [ Homepage ] [ RSS ] [ Required by ] [ Add to tracker ]


Branch: CURRENT, Version: 0.2.6nb1, Package name: hs-auto-update-0.2.6nb1, Maintainer: pho

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.


Master sites:

Filesize: 14.374 KB

Version history: (Expand)


CVS history: (Expand)


   2025-02-02 14:06:08 by Masatake Daimon | Files touched by this commit (1173)
Log message:
Bump all Haskell packages after switching the default compiler.
   2025-01-30 17:00:10 by Masatake Daimon | Files touched by this commit (4) | Package updated
Log message:
devel/hs-auto-update: update to auto-update-0.2.6

## 0.2.6

* Using the thread version of AutoUpdate for non-threaded RTS.
  [#1020](https://github.com/yesodweb/wai/pull/1020)

## 0.2.5

* Thread less autoupdate
  [#1018](https://github.com/yesodweb/wai/pull/1018)

## 0.2.4

* Simple refactoring.

## 0.2.3

* [#996](https://github.com/yesodweb/wai/pull/996):
  Refactored the `Control.Debounce` logic to not leak threads.
* [#996](https://github.com/yesodweb/wai/pull/996):
  Added extra `DebounceEdge` options for different types of debouncing.
  * `LeadingMute`: Action on first trigger, and ignore any triggers during cooldown
  * `TrailingDelay`: First trigger starts cooldown, and
    triggers during cooldown extend the cooldown. Action when cooldown expires.

## 0.2.2

* NewAPI: updateThreadName, reaperThreadName, debounceThreadName:
  Names can be given via this field to threads
  for GHC.Conc.Sync.listThreads.

## 0.2.1

* Labeling threads.
   2024-05-09 03:32:57 by Masatake Daimon | Files touched by this commit (1137)
Log message:
Recursive revbump after changing the default Haskell compiler
   2024-04-28 22:34:00 by Masatake Daimon | Files touched by this commit (4) | Package updated
Log message:
devel/hs-auto-update: Update to 0.2.0

0.2.0
  * Creating Reaper.Internal to export Reaper constructor.
  * Hiding Reaper constructor.
  * Add reaperModify to the Reaper API, allowing workload modification
    outside of the main reaperAction loop. #985
   2023-11-02 07:37:49 by Masatake Daimon | Files touched by this commit (1141)
Log message:
Revbump all Haskell after updating lang/ghc96
   2023-10-26 04:58:51 by Masatake Daimon | Files touched by this commit (1) | Package updated
Log message:
devel/hs-auto-update: Fix build with GHC 9.6
   2023-10-09 06:55:01 by Masatake Daimon | Files touched by this commit (988)
Log message:
Bump Haskell packages after updating lang/ghc94
   2023-05-01 22:43:04 by Nikita | Files touched by this commit (1) | Package updated
Log message:
hs-auto-update: fix plist to include more plist vars