stm-delay

Updatable one-shot timer polled with STM https://github.com/joeyadams/haskell-stm-delay

Version on this page:0.1.1.1
LTS Haskell 8.19:0.1.1.1
Stackage Nightly 2017-06-23:0.1.1.1
Latest on Hackage:0.1.1.1
BSD3 licensed by Joey Adams
Maintained by joeyadams3.14159@gmail.com

Module documentation for 0.1.1.1

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 (GHC 7.2+, -threaded, non-Windows OS), yielding performance similar to threadDelay and registerDelay. Otherwise, it falls back to forked threads and threadDelay.

0.1.1
Add tryWaitDelayIO, improve performance for certain cases of newDelay and updateDelay, and improve example.
Depends on:
comments powered byDisqus