# channo

> A channel library for Deno that provides Rust-like channels backed by [async-cell](https://github.com/zebp/async-cell).

Latest version **0.1.1** (published 2021-05-24) · Unlicense license · 0 weekly downloads

## Install

```sh
npm install channo
pnpm add channo
yarn add channo
bun add channo
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: has types; no vulnerabilities.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.1 |
| Published | 2021-05-24 |
| First published | 2021-05-24 |
| Weekly downloads | 0 |
| License | Unlicense |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 23 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Zebulon Piasecki |
| Maintainers | zebp |

## Links

- npm: https://www.npmjs.com/package/channo
- Repository: https://github.com/zebp/channo
- Homepage: https://github.com/zebp/channo#readme
- Issues: https://github.com/zebp/channo/issues
- npm.io page: https://npm.io/package/channo

## Recent versions

- 0.1.1 (latest) — 2021-05-24

## README

# channo

![npm](https://img.shields.io/npm/v/channo)
![GitHub Workflow Status](https://img.shields.io/github/workflow/status/zebp/channo/ci)
![NPM](https://img.shields.io/npm/l/channo)

A channel library for Deno that provides Rust-like channels backed by
[async-cell](https://github.com/zebp/async-cell).

## Example

```typescript
import { Channel } from "https://deno.land/x/channo/mod.ts";

const printerChannel = new Channel();

async function listenForMessages() {
  for await (const message of printerChannel.stream()) {
    console.log(message);
  }
}

// Spawns a promise to listen for messages pushed to the channel.
listenForMessages();

printerChannel.push("Hello, world!");

// Sleep for 100ms to allow time for the listener to process the messages.
await new Promise((resolve) => setTimeout(resolve, 100));
```

---
_Source: https://npm.io/package/channo · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
