mafoc-0.0.0.1
Safe HaskellSafe-Inferred
LanguageHaskell2010

Mafoc.Signal

Synopsis

Stop

newtype Stop #

Constructors

Stop (MVar Bool) 

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 #

Constructors

Checkpoint (MVar Bool) 

Print chainsync statistics

newtype ChainsyncStats #

Signal for requesting chainsync statistics.

Constructors

ChainsyncStats (MVar Bool) 

Reset signal