libro-backend-0.1.0.0: Restful data backend of the LiBro app
Safe HaskellSafe-Inferred
LanguageHaskell2010

LiBro.Control

Description

Controlling the LiBro data flow.

Synopsis

Documentation

data Blocking Source #

Represents a blocking action because the system is loading or saving data.

Constructors

Reading 
Writing 

Instances

Instances details
Show Blocking Source # 
Instance details

Defined in LiBro.Control

Eq Blocking Source # 
Instance details

Defined in LiBro.Control

initData :: MVar Blocking -> MVar LiBroData -> LiBro () Source #

Initially load data and put it into the shared state. Expects the given MVar to be empty.

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.