| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Affection.MessageBus.Class
Documentation
class (Message msg, Show msg) => Participant prt msg us where Source #
Minimal complete definition
Methods
Arguments
| :: prt | the |
| -> Affection us [msg -> Affection us ()] | List of Subscriber functions |
Function to get the list of subscribers from the participant
Arguments
| :: prt | The |
| -> (msg -> Affection us ()) | What to do in case of a |
| -> Affection us (MsgId msg) |
|
Subscribe to the Participant's events
Arguments
| :: 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