Skip to main content
Module

x/async_channels/src/channel.ts>Channel#[Symbol.asyncIterator]

Inspired by Go & Clojure Channels, async_channels provides channels as an asynchronous communication method between asynchronous functions.
Latest
method Channel.prototype.[Symbol.asyncIterator]
import { Channel } from "https://deno.land/x/async_channels@v1.0.0-rc8/src/channel.ts";

Creates an AsyncGenerator that yields all values sent to this channel, and returns when the channel closes.

Returns

AsyncGenerator<T, void, void>