Updatable one-shot timer polled with STM https://github.com/joeyadams/haskell-stm-delay
This package is not currently in any snapshots. If you're interested in using it, we recommend adding it to Stackage Nightly. Doing so will make builds more reliable, and allow stackage.org to host generated Haddocks.
This library lets you create a one-shot timer, poll it using STM, and update it to ring at a different time than initially specified.
It uses GHC event manager timeouts when available
-threaded, non-Windows OS), yielding performance similar
registerDelay. Otherwise, it falls back to
forked threads and
- Add tryWaitDelayIO, improve performance for certain cases of
updateDelay, and improve example.