effect-io-ai

Package: effect
Module: StreamHaltStrategy

StreamHaltStrategy.match

Folds over the specified HaltStrategy using the provided case functions.

Signature

declare const match: { <Z>(options: { readonly onLeft: () => Z; readonly onRight: () => Z; readonly onBoth: () => Z; readonly onEither: () => Z; }): (self: HaltStrategy) => Z; <Z>(self: HaltStrategy, options: { readonly onLeft: () => Z; readonly onRight: () => Z; readonly onBoth: () => Z; readonly onEither: () => Z; }): Z; }

Source

Since v2.0.0