libraft-0.1.1.0: Raft consensus algorithm

Safe HaskellNone
LanguageHaskell2010

Control.Concurrent.STM.Timer

Synopsis

Documentation

data Timer m Source #

waitTimer :: MonadConc m => Timer m -> m () Source #

startTimer :: MonadConc m => Timer m -> m () Source #

Starting a timer will only work if the timer is currently stopped

resetTimer :: MonadConc m => Timer m -> m () Source #

newTimerRange :: MonadConc m => Int -> (Natural, Natural) -> m (Timer m) Source #

Create a new timer with the given random seed and range of timer timeouts.