Constructors
UpdateStateusUpdateAction_ :: a -> IO ausLastResult_ :: IORef ausIntervalMicro_ :: IntusTimeHasCome_ :: TVar BoolusDeleteTimeout_ :: IORef (IO ())
:: a typeCtrl KGHC 9.14.1 · lts/ghc-9.14.x · b2f3bfd · 2026-10-11
Moduleauto-update-0.2.8Haskell2010
UpdateStateusUpdateAction_ :: a -> IO ausLastResult_ :: IORef ausIntervalMicro_ :: IntusTimeHasCome_ :: TVar BoolusDeleteTimeout_ :: IORef (IO ())iref <- newIORef (0 :: Int)action = modifyIORef iref (+ 1) >> readIORef iref(getValue, closeState) <- mkClosableAutoUpdate $ defaultUpdateSettings { updateFreq = 200_000, updateAction = action }getValue1threadDelay 100_000 >> getValue1threadDelay 200_000 >> getValue2closeState
provide UpdateState for debugging