Skip to main content
Module

x/async_channels/mod.ts>pipe.ChannelPipeOptions

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

Options for pipe operations.

Properties

optional
bufferSize: number

A safe and positive integer representing the channel buffer size. A bufferSize of 0 indicates a channel without any buffer.

optional
signal: AbortSignal

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