Home / Docs / Specification
27. Tasks and time
Status: Normative, edition 0.4 preview (ADR 0117).
How tasks run, wait and are bounded: lightweight tasks on a few workers, and later within, first of, tasks and start, and limits on grants. The rules of ADR 0117 join this chapter as they land, each with its conformance cases; until a rule has landed, the construct it defines is a syntax error (U0101) or its word is reserved (U0103).
What has landed. Sections 1 to 4, the runtime of tasks (ADR 0117 rules 1 to 3, slice S1). They add no construct and change no output, failure or trace of any edition: they say how the native backend runs the tasks of together and together for (spec/19 §8), and which flags bound it. Section 5, within and interruption (ADR 0117 rules 4, 5 and 13, IF2, slice S2), in edition 0.4. Section 6, first of (ADR 0117 rules 4, 6, 10, 12 and 13, IF3, slice S3), in edition 0.4. Sections 7 and 8, tasks and start, traces written as they happen, the interpreter's coroutines and the schedule both engines share under virtual time (ADR 0117 rules 7, 10, 11, 12 and 13, slice S4), in edition 0.4. Section 9, limits on Http grants (ADR 0117 rule 8, IF4, slice S5), in edition 0.4. Rule 3 of section 2, the reactor (ADR 0117 rules 3 and 4, slice S7), which changes when the waits of Http end, never an outcome, a failure or a trace.