language · keyword ·
await
Read an admitted task result
Use a task when useful work can progress independently and you can define completion, failure, cancellation, and ownership.
awaitStatus: experimental
Start and await
Use a task when useful work can progress independently and you can define completion, failure, cancellation, and ownership.
language · type checked
LoadScore() -> int
{
return 42
}
task of int loading = task LoadScore()
wait loading
int score = await loading
Console.Log(Text.From(score))project.mech
manifestVersion = "2"
package = "api.example.word_await"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"
[app]
kind = "headless"
Notes and source
Task, parallel, and tunnel behavior varies by target and remains experimental.
Do not discard a task unless its lifecycle and failure are intentionally unobserved.
yeho/errors-tasks-effects-2026.1.json; tests/compiler/errors-tasks-effects/task-lifecycle/start.yh