{"id":17924276,"url":"https://github.com/zebp/channo","last_synced_at":"2025-03-24T02:33:38.147Z","repository":{"id":51087672,"uuid":"360963983","full_name":"zebp/channo","owner":"zebp","description":"A channel library for Deno that provides Rust-like channels backed by async-cell.","archived":false,"fork":false,"pushed_at":"2021-05-24T13:20:31.000Z","size":21,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-15T08:12:32.275Z","etag":null,"topics":["deno","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"unlicense","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zebp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-04-23T17:49:25.000Z","updated_at":"2021-05-24T13:20:33.000Z","dependencies_parsed_at":"2022-08-26T12:51:16.083Z","dependency_job_id":null,"html_url":"https://github.com/zebp/channo","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebp%2Fchanno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebp%2Fchanno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebp%2Fchanno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zebp%2Fchanno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zebp","download_url":"https://codeload.github.com/zebp/channo/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245199060,"owners_count":20576485,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deno","typescript"],"created_at":"2024-10-28T20:47:53.704Z","updated_at":"2025-03-24T02:33:37.893Z","avatar_url":"https://github.com/zebp.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# channo\n\n![npm](https://img.shields.io/npm/v/channo)\n![GitHub Workflow Status](https://img.shields.io/github/workflow/status/zebp/channo/ci)\n![NPM](https://img.shields.io/npm/l/channo)\n\nA channel library for Deno that provides Rust-like channels backed by\n[async-cell](https://github.com/zebp/async-cell).\n\n## Example\n\n```typescript\nimport { Channel } from \"https://deno.land/x/channo/mod.ts\";\n\nconst printerChannel = new Channel();\n\nasync function listenForMessages() {\n  for await (const message of printerChannel.stream()) {\n    console.log(message);\n  }\n}\n\n// Spawns a promise to listen for messages pushed to the channel.\nlistenForMessages();\n\nprinterChannel.push(\"Hello, world!\");\n\n// Sleep for 100ms to allow time for the listener to process the messages.\nawait new Promise((resolve) =\u003e setTimeout(resolve, 100));\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzebp%2Fchanno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzebp%2Fchanno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzebp%2Fchanno/lists"}