Safe Haskell | None |
---|---|
Language | Haskell2010 |
Documentation
class (Message msg, Show msg) => Participant prt msg us where Source #
:: prt | the |
-> Affection us [msg -> Affection us ()] | List of Subscriber functions |
Function to get the list of subscribers from the participant
:: prt | The |
-> (msg -> Affection us ()) | What to do in case of a |
-> Affection us (MsgId msg) |
|
Subscribe to the Participant'
s events
:: prt | The |
-> MsgId msg | The subscriber function's |
-> Affection us () |
Unsubscribe a Subscriber function from Participant
Get the Participant
to emit a Message
on all of its subscribers