Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype Stop = Stop (MVar Bool)
- setupCtrlCHandler :: Int -> IO Stop
- takeWhileStopSignal :: Stop -> Stream (Of a) IO r -> Stream (Of a) IO ()
- newtype Checkpoint = Checkpoint (MVar Bool)
- setupCheckpointSignal :: IO Checkpoint
- newtype ChainsyncStats = ChainsyncStats (MVar Bool)
- setupChainsyncStatsSignal :: IO ChainsyncStats
- resetGet :: Coercible a (MVar Bool) => a -> IO Bool
Stop
setupCtrlCHandler :: Int -> IO Stop #
Returns an MVar which when filled, means that the program should close.
takeWhileStopSignal :: Stop -> Stream (Of a) IO r -> Stream (Of a) IO () #
Stop streaming when the signal MVar is filled with a True.
Chekpoint
newtype Checkpoint #