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

UnliftIO.MessageBox.Util.CallId

Synopsis

Documentation

newtype CallId Source #

An identifier value every command send by calls.

Constructors

MkCallId Int 

Instances

Instances details
Eq CallId Source # 
Instance details

Defined in UnliftIO.MessageBox.Util.CallId

Methods

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

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

Ord CallId Source # 
Instance details

Defined in UnliftIO.MessageBox.Util.CallId

Show CallId Source # 
Instance details

Defined in UnliftIO.MessageBox.Util.CallId

HasCallIdCounter (CounterVar CallId) Source # 
Instance details

Defined in UnliftIO.MessageBox.Util.CallId

class HasCallIdCounter env where Source #

Class of environment records containing a CounterVar for CallIds.

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

Increment and get a new CallId.