devel/hs-auto-update 0.2.6nb3 NetBSD
Efficiently run periodic, on-demand actions
- System
- NetBSD
- Repository
- pkgsrc
- Maintainer
- [email protected]
- License
- mit
- Categories
- devel
- Package size
- 141.2 KiB, 1268.3 KiB installed
Description
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.
Install
Binary package:
pkgin install hs-auto-update
From pkgsrc:
cd /usr/pkgsrc/devel/hs-auto-update && make install clean
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | Version |
|---|---|
| NetBSD 10.1 x86_64 | 0.2.6nb3 |
| NetBSD 10.1 aarch64 | 0.2.6nb3 |
| SmartOS / illumos x86_64 | 0.2.6nb3 |
| macOS 15 arm64 | 0.2.6nb3 |