unliftio-messagebox-2.0.0: Fast and robust message queues for concurrent processes
Safe HaskellNone
LanguageHaskell2010

UnliftIO.MessageBox.Util.CallId

Synopsis

Documentation

newtype CallId #

An identifier value every command send by calls.

Constructors

MkCallId Int 

Instances

Instances details
Eq CallId # 
Instance details

Defined in UnliftIO.MessageBox.Util.CallId

Methods

(==) :: CallId -> CallId -> Bool

(/=) :: CallId -> CallId -> Bool

Ord CallId # 
Instance details

Defined in UnliftIO.MessageBox.Util.CallId

Methods

compare :: CallId -> CallId -> Ordering

(<) :: CallId -> CallId -> Bool

(<=) :: CallId -> CallId -> Bool

(>) :: CallId -> CallId -> Bool

(>=) :: CallId -> CallId -> Bool

max :: CallId -> CallId -> CallId

min :: CallId -> CallId -> CallId

Show CallId # 
Instance details

Defined in UnliftIO.MessageBox.Util.CallId

Methods

showsPrec :: Int -> CallId -> ShowS

show :: CallId -> String

showList :: [CallId] -> ShowS

HasCallIdCounter (CounterVar CallId) # 
Instance details

Defined in UnliftIO.MessageBox.Util.CallId

class HasCallIdCounter env where #

Class of environment records containing a CounterVar for CallIds.

Instances

Instances details
HasCallIdCounter (CounterVar CallId) # 
Instance details

Defined in UnliftIO.MessageBox.Util.CallId

takeNext :: (MonadReader env m, HasCallIdCounter env, MonadUnliftIO m) => m CallId #

Increment and get a new CallId.

newCallIdCounter :: MonadIO m => m (CounterVar CallId) #

Create a new CallId CounterVar.