Skip to main content
Module

x/async_channels/src/mod.ts>Channel#next

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

Blocks until a value is available on the channel, or returns immedietly if the channel is closed.

Returns

Promise<IteratorResult<T, void>>