BSD-3-Clause licensed by Joey Adams
Maintained by [email protected]
This version can be pinned in stack with:stm-delay-0.1.1.2@sha256:1e2a35cb9262ff71f24f7f6e91692025ba384434dae19cda7327f5a925d19be9,2803

Module documentation for 0.1.1.2

Depends on 2 packages(full list with versions):
Used by 2 packages in lts-23.23(full list with versions):

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.2 (2025-05-08)
  • Remove a call to ensureIOManagerIsRunning, for consistency with System.Timeout

  • Adjust timings in the testsuite to fix intermittent failure in the non-threaded RTS case.

0.1.1 (2014-09-14)
  • Add tryWaitDelayIO, improve performance for certain cases of newDelay and updateDelay, and improve example.