language · keyword ·
thread
Unavailable source syntax; use task
Use the replacement that makes ownership and flow explicit. Revisit dedicated syntax only after it earns a compiler, runtime, and verification contract.
threadStatus: unavailable
Complete program
Coordinate CPU tasks explicitly. Cancellation is a request; a short task may finish first.
cpu · language · type checked
// task is the supported CPU concurrency unit; thread syntax is unavailable.
Count() -> int { return 42 }
task of int worker = task Count()
stop worker
wait until worker.finished
Console.Log(Text.From(worker.cancelled))
parallel
{
Console.Log("Preparing textures")
Console.Log("Preparing audio")
}
project.mech
manifestVersion = "2"
package = "api.example.word__thread"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
Notes and source
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.
yeho/parser_core.cpp and parser_statements.cpp rejection diagnostics; language-core.md §13.4