Rule 193p-wait
Transitions
(193)
Comments
Time passes only in this rule, and every other transition takes no time. Since this rule applies to every configuration, the definition requires no step to happen by any time: only the lower bound of rule (185), and what the platform imposes on its own steps, relate the steps of a program to time.
TeX source
\defnrule[r:p-wait]
{d>0}
{(s,v,M,P,\sbv,Q,H)\step{\pgwait\,d}(s+d,v,M,P,\sbv,Q,H)}Tests (3)
- elm / MinimalSleepTestA process sleeps, and time passes.
- elm-core / ProcessPrimitiveOutcomeTestThe primitive tasks `Process.sleep`, `Process.spawn` and `Process.kill` succeed with their outcomes.
- elm-core / StandardA81SleepBeyond32BitsTest`Process.sleep d` waits at least `d` milliseconds, also when `d` is above 2^31 - 1.
Discussions
Discuss this rule·Search the discussions on GitHub
Discussions are on GitHub; one about this rule has [r:p-wait] 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.