; Spawning beyond the deterministic task limit is an environment outcome, not a trap. ; expect: run ; task_limit: 2 ; limit_exceeded: tasks ; phase: 3 ; spec: docs/spec/04-concurrency-and-atomics.md module test.tasks_limit air 0 lang 0.1 features [arrays, ownership, tasks] fn @main() -> void effects [task.spawn] entry: %sc = task.scope.begin %a = task.spawn %sc, @noop() %b = task.spawn %sc, @noop() %c = task.spawn %sc, @noop() task.join %a task.join %b task.join %c task.scope.end %sc ret fn @noop() -> void effects [] entry: ret