Rule 180p-disp-out
Dispatch
(180)
Comments
The boundary value was computed when the command was made (Section 8.7); dispatch only appends it to the queue of its port. Since is defined only for the outgoing ports of the program, is one of them. The values of one command for one port join the queue in the order of , which is unspecified: with Cmd.batch [send 1, send 2], either value may be delivered first.
TeX source
\defnrule[r:p-disp-out]
{\effc\in\pgLeaf(\effmout\,\effp,j)\\
\jdg{s,P,\ Q+\{\effp\mapsto Q(\effp)\cdot j\},\ H}{L}{(P',Q',H')}}
{\jdg{s,P,Q,H}{\effc\cdot L}{(P',Q',H')}}Tests (2)
- elm / MinimalPipeIntTestA pipe at `Int`: the value the driver sends in comes back out.
- elm / OutgoingPortTuple3KeepsRunningTestA program that sends a 3-tuple through an outgoing port keeps running afterwards.
Discussions
Discuss this rule·Search the discussions on GitHub
Discussions are on GitHub; one about this rule has [r:p-disp-out] in its title.
A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.