mogami-stream - v0.4.0
    Preparing search index...

    Interface RouteOptions<T>

    Options for executing a stream pipeline.

    interface RouteOptions<T> {
        branches: number;
        capacity: number;
        default?: number;
        fallback?: "error" | "ignore";
        select: (
            value: T,
            context: OperatorContext,
        ) => number | PromiseLike<number>;
        signal?: AbortSignal;
    }

    Type Parameters

    • T

    Hierarchy (View Summary)

    Index
    branches: number

    Positive safe integer. Its product with capacity must also be a safe integer.

    capacity: number

    Positive safe integer limiting each branch queue, excluding the coordinator's single item.

    default?: number

    Existing branch to use if the selected destination departs.

    fallback?: "error" | "ignore"

    Handles items with no active destination after trying default. Defaults to "ignore".

    select: (value: T, context: OperatorContext) => number | PromiseLike<number>
    signal?: AbortSignal

    External AbortSignal to cancel the execution. If already aborted, the source is never opened.