Hyperlinkv0.8.0-beta.28

Channel

Channel.HaltStrategytypeeffect/Channel.ts:6099
HaltStrategy

Represents strategies for halting merged channels when one completes or fails.

Example (Choosing merge halt strategies)

import type { Channel } from "effect"

// Different halt strategies for channel merging
const leftFirst: Channel.HaltStrategy = "left" // Stop when left channel halts
const rightFirst: Channel.HaltStrategy = "right" // Stop when right channel halts
const both: Channel.HaltStrategy = "both" // Stop when both channels halt
const either: Channel.HaltStrategy = "either" // Stop when either channel halts
models
export type HaltStrategy = "left" | "right" | "both" | "either"
Referenced by 2 symbols