Ticker Messages¶
Message interface¶
type TickerMsg :=
| TickerMsgIncrement
| TickerMsgCountRequest
| TickerMsgCountReply CountReply;
Message sequence diagram¶
Requesting a counter value¶
Message types¶
TickerMsgIncrement
¶
A TickerMsgIncrement
message instructs the engine to increase the counter.
This message doesn't require any arguments.
TickerMsgCountRequest
¶
A TickerMsgCountRequest
message requests the engine to send the current counter value back to
the requester. This message doesn't require any arguments.
CountReply
¶
The CountReply
payload contains the counter value.
type CountReply : Type :=
mkCountReply@{
counter : Nat;
};
TickerMsg
¶
type TickerMsg :=
| TickerMsgIncrement
| TickerMsgCountRequest
| TickerMsgCountReply CountReply;