{"id":"word--parallel","name":"parallel","owner":"yeho","package":"language","kind":"keyword","signature":"parallel","description":"Run admitted work concurrently","context":"Use the narrowest wait that explains progress. Treat stop as a lifecycle request, not proof that cleanup already finished.","parameters":[],"returns":"","members":[],"tags":["concurrency","cpu","keyword","language","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"parser_statements.cpp parseWaitStatement; errors-tasks-effects fixtures"},"status":"experimental","notes":["Supported duration units are target-validated.","parallel failure and cleanup semantics are covered by dedicated fixtures, but the feature is experimental."],"examples":[{"id":"complete","title":"Complete program","description":"Coordinate CPU tasks explicitly. Cancellation is a request; a short task may finish first.","code":"// task is the supported CPU concurrency unit; thread syntax is unavailable.\nCount() -> int { return 42 }\ntask of int worker = task Count()\nstop worker\nwait until worker.finished\nConsole.Log(Text.From(worker.cancelled))\nparallel\n{\n    Console.Log(\"Preparing textures\")\n    Console.Log(\"Preparing audio\")\n}\n","tags":["cpu","language"],"run":"cpu-oracle","expected":null,"verifyRun":false,"manifest":"manifestVersion = \"2\"\npackage = \"api.example.word__parallel\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","verification":"type checked","sha256":"672ce094183d78263c846941f73af00e4d88e48b0a5688eaf16eac6780645ba9","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=word--parallel","json":"https://demonhunterlabs.com/reference/items/word--parallel.json","markdown":"https://demonhunterlabs.com/reference/text/word--parallel.md"}
