effect-io-ai

Package: effect
Module: ExecutionStrategy

ExecutionStrategy.match

Folds over the specified ExecutionStrategy using the provided case functions.

Signature

declare const match: { <A>(options: { readonly onSequential: LazyArg<A>; readonly onParallel: LazyArg<A>; readonly onParallelN: (n: number) => A; }): (self: ExecutionStrategy) => A; <A>(self: ExecutionStrategy, options: { readonly onSequential: LazyArg<A>; readonly onParallel: LazyArg<A>; readonly onParallelN: (n: number) => A; }): A; }

Source

Since v2.0.0