[Haskell-cafe] Running an action periodically
mtesseract at silverratio.net
Sat Nov 25 12:27:50 UTC 2017
how about the async-refresh package
Looks close to what you have written — from the README:
This is Haskell library implementing the logic for refreshing of
expiring data according to user-provided actions.
* Create a new configuration using newAsyncRefreshConf, providing the
action to be used for data refreshing.
* Adjust the configuration using the asyncRefreshConfSet* functions,
in particular using asyncRefreshConfSetCallback.
* Use newAsyncRefresh to initiate a new thread managing the
It is currently used by the package async-refresh-tokens
specializes the async-refresh package to the refreshing of expiring
If you have questions or suggestions, feel free to open issues and/or
contact me directly.
More information about the Haskell-Cafe