Package Info

ghc-stm-delay


Updatable one-shot timer polled with STM


Development/Libraries/Haskell

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.


License: BSD-3-Clause
URL: https://hackage.haskell.org/package/stm-delay

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.1.1.1-bp150.2.5 info GA Release 2018-08-01 15
  • AArch64
  • ghc-stm-delay
  • ghc-stm-delay-devel
0.1.1.1-bp150.2.7 info GA Release 2018-07-30 15
  • ppc64le
  • x86-64
  • ghc-stm-delay
  • ghc-stm-delay-devel