polysemy-conc-0.14.1.1: Polysemy effects for concurrency
Safe HaskellNone
LanguageGHC2021

Polysemy.Conc.Interpreter.Monitor

Description

 
Synopsis

Documentation

interpretMonitorRestart :: forall t d (r :: EffectRow). Members '[Time t d, Resource, Async, Race, Final IO] r => MonitorCheck r -> InterpreterFor RestartingMonitor r Source #

Interpret Scoped Monitor with the 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.