HORIZON HASKELLDocslts/ghc-9.10.xc74966e2026-09-27Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · c74966e · 2026-09-27

Moduleauto-update-0.2.6Haskell2010

Control.AutoUpdate.Internal

  • 1 type
  • 2 values

Debugging

3 declarations
valuemkClosableAutoUpdate :: UpdateSettings a -> IO (IO a, IO ())
#
Example7 expressions
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