stm-delay: Updatable one-shot timer polled with STM

[ bsd3, library, system ] [ Propose Tags ] [ Report a vulnerability ]

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.

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1, 0.1.1, 0.1.1.1, 0.1.1.2
Dependencies base (>=4.3 && <5), stm (<3) [details]
License BSD-3-Clause
Copyright Copyright (c) Joseph Adams 2012
Author Joey Adams
Maintainer joeyadams3.14159@gmail.com
Category System
Home page https://github.com/joeyadams/haskell-stm-delay
Source repo head: git clone git://github.com/joeyadams/haskell-stm-delay.git
Uploaded by JoeyAdams at 2025-05-09T01:28:17Z
Distributions Arch:0.1.1.1, Debian:0.1.1.1, LTSHaskell:0.1.1.2, NixOS:0.1.1.1, Stackage:0.1.1.2
Reverse Dependencies 10 direct, 27 indirect [details]
Downloads 12885 total (11 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2025-05-09 [all 1 reports]