Safe Haskell | Safe-Inferred |
---|
Program.Mighty.State
- data Status
- data Stater
- initStater :: IO Stater
- getConnectionCounter :: Stater -> IO Int
- getServerStatus :: Stater -> IO Status
- isRetiring :: Stater -> IO Bool
- increment :: Stater -> IO ()
- decrement :: Stater -> IO ()
- setMyWarpThreadId :: Stater -> IO ()
- addAnotherWarpThreadId :: Stater -> ThreadId -> IO ()
- goRetiring :: Stater -> IO ()
- ifWarpThreadsAreActive :: Stater -> IO () -> IO ()
Types
Creating Stater
Creating a new Stater
.
Accessing Stater
getServerStatus :: Stater -> IO StatusSource
isRetiring :: Stater -> IO BoolSource
Modifying Stater
setMyWarpThreadId :: Stater -> IO ()Source
addAnotherWarpThreadId :: Stater -> ThreadId -> IO ()Source
goRetiring :: Stater -> IO ()Source
Setting status to Retiring
.