Rule 139e-task-prim
Task Reduction
(139)
Comments
This is the only rule with a label, and it does not determine its result: the outcome is any member of . For , the process identifier is unconstrained here; Chapter 9 chooses one that names no earlier process. For the primitives of the platform, the outcome is decided by the platform, which may also take time to decide it, as for .
TeX source
\defnrule[r:e-task-prim]
{\tk\in\effOut(\pi,v_1\cdots v_k)}
{\effprim(\pi,v_1\cdots v_k)\effred{\effdone{\pi(v_1\cdots v_k)}{\tk}}\tk}Tests (2)
- elm / MinimalSleepTestA process sleeps, and time passes.
- elm-core / ProcessPrimitiveOutcomeTestThe primitive tasks `Process.sleep`, `Process.spawn` and `Process.kill` succeed with their outcomes.
Discussions
Discuss this rule·Search the discussions on GitHub
Discussions are on GitHub; one about this rule has [r:e-task-prim] 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.