Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/async_channels/mod.ts>Channel#flatMap

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

Parameters

fn: (val: T) => Iterable<TOut> | AsyncIterable<TOut>
optional
bufferSize = [UNSUPPORTED]
optional
options: ChannelPipeOptions | undefined = [UNSUPPORTED]