LiBro.Control
Description
Controlling the LiBro data flow.
data Blocking Source #
Represents a blocking action because the system is loading or saving data.
Constructors
Defined in LiBro.Control
Methods
showsPrec :: Int -> Blocking -> ShowS #
show :: Blocking -> String #
showList :: [Blocking] -> ShowS #
(==) :: Blocking -> Blocking -> Bool #
(/=) :: Blocking -> Blocking -> Bool #
initData :: MVar Blocking -> MVar LiBroData -> LiBro () Source #
Initially load data and put it into the shared state. Expects the given MVar to be empty.
MVar
saveData :: MVar Blocking -> MVar LiBroData -> LiBro Bool Source #
Try to store shared state data. Expects the given blocking MVar to be empty. Iff not, returns False.
False