// Spawning beyond the deterministic task limit is an environment outcome, not a trap. // expect: run // task_limit: 2 // limit_exceeded: tasks // equivalent: phase3/run/tasks_limit.air // phase: 6 // spec: docs/spec/15-source-language.md module demo.tasklimit fn noop() -> void effects [] { } fn main() -> void effects [task.spawn] { scope sc { let a = task.spawn(sc, noop); let b = task.spawn(sc, noop); let c = task.spawn(sc, noop); task.join(move a); task.join(move b); task.join(move c); } }