{"id":"word--thread","name":"thread","owner":"yeho","package":"language","kind":"keyword","signature":"thread","description":"Unavailable source syntax; use task","context":"Use the replacement that makes ownership and flow explicit. Revisit dedicated syntax only after it earns a compiler, runtime, and verification contract.","parameters":[],"returns":"","members":[],"tags":["boundaries","cpu","keyword","language","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"parser_core.cpp and parser_statements.cpp rejection diagnostics; language-core.md §13.4"},"status":"unavailable","notes":["panic, assert, fatal, exception subclasses, and finally are not admitted error syntax.","Dedicated event, emit, and watch syntax is deferred in favor of ordinary values, functions, tasks, and tunnels."],"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__thread\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","verification":"type checked","sha256":"bcd0cb04e902f0c4aa5b92bc00f4117ce832d0c51db68055a42e2e3eb753443b","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=word--thread","json":"https://demonhunterlabs.com/reference/items/word--thread.json","markdown":"https://demonhunterlabs.com/reference/text/word--thread.md"}
