Safe Haskell | None |
---|---|
Language | GHC2021 |
Polysemy.Conc.Interpreter.Monitor
Description
Synopsis
- interpretMonitorRestart :: forall t d (r :: EffectRow). Members '[Time t d, Resource, Async, Race, Final IO] r => MonitorCheck r -> InterpreterFor RestartingMonitor r
- interpretMonitorPure :: forall action (r :: [Effect]) a. Sem (ScopedMonitor action ': r) a -> Sem r a
Documentation
interpretMonitorRestart :: forall t d (r :: EffectRow). Members '[Time t d, Resource, Async, Race, Final IO] r => MonitorCheck r -> InterpreterFor RestartingMonitor r Source #
Interpret
with the Scoped
Monitor
Restart
strategy.
This takes a check action that may put an MVar
when the scoped region should be restarted.
The check is executed in a loop, with an interval given in MonitorCheck
.
interpretMonitorPure :: forall action (r :: [Effect]) a. Sem (ScopedMonitor action ': r) a -> Sem r a Source #
Run Monitor
as a no-op.