Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data ClockSkewConfig = ClockSkewConfig {}
- clockSkewConfig :: TimeUnit u1 => TimeUnit u2 => u1 -> u2 -> ClockSkewConfig
- monitorClockSkew :: forall t d diff r. Torsor t diff => TimeUnit diff => Members [AtomicState (Maybe t), Time t d, Embed IO] r => ClockSkewConfig -> MonitorCheck r
Documentation
data ClockSkewConfig Source #
Config for monitorClockSkew
.
Instances
Eq ClockSkewConfig Source # | |
Defined in Polysemy.Conc.Monitor (==) :: ClockSkewConfig -> ClockSkewConfig -> Bool # (/=) :: ClockSkewConfig -> ClockSkewConfig -> Bool # | |
Show ClockSkewConfig Source # | |
Defined in Polysemy.Conc.Monitor showsPrec :: Int -> ClockSkewConfig -> ShowS # show :: ClockSkewConfig -> String # showList :: [ClockSkewConfig] -> ShowS # | |
Default ClockSkewConfig Source # | |
Defined in Polysemy.Conc.Monitor def :: ClockSkewConfig # |
clockSkewConfig :: TimeUnit u1 => TimeUnit u2 => u1 -> u2 -> ClockSkewConfig Source #
Smart constructor for ClockSkewConfig
that takes arbitrary TimeUnit
s.
monitorClockSkew :: forall t d diff r. Torsor t diff => TimeUnit diff => Members [AtomicState (Maybe t), Time t d, Embed IO] r => ClockSkewConfig -> MonitorCheck r Source #
Check for Monitor
that checks every interval
whether the difference between the current
time and the time at the last check is larger than interval
+ tolerance
.
Can be used to detect that the operating system suspended and resumed.