Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/async_channels/src/mod.ts>pipe.ChannelPipeOptions

Inspired by Go & Clojure Channels, async_channels provides channels as an asynchronous communication method between asynchronous functions.
Latest
interface pipe.ChannelPipeOptions
implements ChannelOptions
Re-export
import { type pipe } from "https://deno.land/x/async_channels@v1.0.0-rc8/src/mod.ts";
const { ChannelPipeOptions } = pipe;

Options for pipe operations.

Properties

optional
bufferSize: number

A safe integer representing the channel buffer size. A bufferSize of 0 indicates a channel without any buffer. A negative bufferSize indicates a channel with an endless buffer.

optional
signal: AbortSignal

If provided, the pipe operation will halt when the signal is triggered.