{"id":"type--tunnel-of-T-5818c6","name":"tunnel of T","owner":"yeho","package":"language.types","kind":"type","signature":"tunnel of T","description":"A typed channel for sending and receiving values between pieces of work.","context":"A focused reference with a complete example. Numeric widths and experimental types still depend on the selected backend.","parameters":[],"returns":"","members":[],"tags":["containers-and-handles","cpu","language","type","yeho"],"updated":"2026-09-09","source":{"repository":"demonhunterlabs","path":"app/lib/yeho-language-reference.ts"},"status":"documented","notes":[],"examples":[{"id":"complete","title":"Complete tunnels example","description":"Use a tunnel when producers and consumers should communicate without sharing an unbounded mutable queue.","code":"tunnel of text messages\nmessages.Send(\"Player joined\")\ntext message = messages.Receive()\nConsole.Log(message)\n","tags":["cpu","language"],"run":"cpu-oracle","expected":null,"verifyRun":false,"manifest":"manifestVersion = \"2\"\npackage = \"api.example.language__tunnels\"\nversion = \"0.1.0\"\nlanguageEdition = \"yeho-core-2026.1\"\n\n[app]\nkind = \"headless\"\n","verification":"type checked","sha256":"4802550cad3a89cde69e1e4b7dd742271ad40da7aa0a26401cc29fc82cbc715c","checked":"2026-09-09","diagnostic":"","observedOutput":null,"checkedBackend":null}],"searchTerms":[],"url":"https://demonhunterlabs.com/academy/api?item=type--tunnel-of-T-5818c6","json":"https://demonhunterlabs.com/reference/items/type--tunnel-of-T-5818c6.json","markdown":"https://demonhunterlabs.com/reference/text/type--tunnel-of-T-5818c6.md"}
