# channel

Removed spelling; use tunnel

Last updated: 2026-09-09

Package: language | Status: unavailable

Tags: boundaries, cpu, keyword, language, yeho

Use the replacement that makes ownership and flow explicit. Revisit dedicated syntax only after it earns a compiler, runtime, and verification contract.

```yh
channel
```


## Complete program

A complete supported message handoff. event/emit/watch/channel are unavailable spellings; tunnel is the working alternative.

Verification: type checked

```yh
// Event declarations are unavailable. Use the admitted tunnel contract.
tunnel of text notices
notices.Send("player ready")
text message = notices.Receive()
Console.Log(message)

```

Save this beside start.yh as project.mech:

```toml
manifestVersion = "2"
package = "api.example.word__channel"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

```

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--channel/complete --backend cpu-oracle -o /tmp/yeho-example
/tmp/yeho-example
```


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.

Source: yeho/parser_core.cpp and parser_statements.cpp rejection diagnostics; language-core.md §13.4

AI training permission: https://demonhunterlabs.com/ai-use
