{"id":"word--await","name":"await","owner":"yeho","package":"language","kind":"keyword","signature":"await","description":"Read an admitted task result","context":"Use a task when useful work can progress independently and you can define completion, failure, cancellation, and ownership.","parameters":[],"returns":"","members":[],"tags":["concurrency","keyword","language","yeho"],"updated":"2026-09-09","source":{"repository":"yeho","path":"errors-tasks-effects-2026.1.json; tests/compiler/errors-tasks-effects/task-lifecycle/start.yh"},"status":"experimental","notes":["Task, parallel, and tunnel behavior varies by target and remains experimental.","Do not discard a task unless its lifecycle and failure are intentionally unobserved."],"examples":[{"id":"usage","title":"Start and await","description":"Use a task when useful work can progress independently and you can define completion, failure, cancellation, and ownership.","code":"LoadScore() -> int\n{\n    return 42\n}\n\ntask of int loading = task LoadScore()\nwait loading\nint score = await loading\nConsole.Log(Text.From(score))","manifest":"manifestVersion = \"2\"\npackage = \"api.example.word_await\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","tags":["language"],"verification":"type checked","run":"cpu-oracle","sha256":"2821651076790669babd5e2fccecfd1c1a5ab6fe2d2cd99680116d0ecc50c37e","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=word--await","json":"https://demonhunterlabs.com/reference/items/word--await.json","markdown":"https://demonhunterlabs.com/reference/text/word--await.md"}
