# of

Connect a container to its element type

Last updated: 2026-09-09

Package: language | Status: experimental

Tags: collections, complete-program, cpu, keyword, yeho

Use a list when order and duplicates matter.

```yh
of
```


## Task wait until runtime

Use a list when order and duplicates matter.

Verification: type checked

```yh
ComputeScore() returns int
{
    return 7
}

task of int scoreTask = task ComputeScore()
wait until scoreTask.finished

Console.Log(Text.From(scoreTask.result))



```

Save this beside start.yh as project.mech:

```toml
package = "tests.compiler.kyber.taskWaitUntilRuntime"
version = "0.1.0"
backend = "kyber"
osTarget = "windows"
archTarget = "x64"
selfContainedApp = false




```

Extract the example archive beside the yeho and dolphin checkouts. This example requires those source dependencies and a current developer compiler.

```sh
./yeho/build/dolphin-metal/yehoc ./api-examples/word--of/complete --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


Collections are experimental in the 2026.1 conformance edition.

Index bounds remain part of the runtime contract.

Source: yeho/language-core.md §3.4; tests/compiler/kyber/list-runtime/start.yh

AI training permission: https://demonhunterlabs.com/ai-use
