effect-io-ai

Package: effect
Module: UpstreamPullStrategy

UpstreamPullStrategy.match

Folds an UpstreamPullStrategy<A> into a value of type Z.

Signature

declare const match: { <A, Z>(options: { readonly onNext: (emitSeparator: Option.Option<A>) => Z; readonly onAllEnqueued: (emitSeparator: Option.Option<A>) => Z; }): (self: UpstreamPullStrategy<A>) => Z; <A, Z>(self: UpstreamPullStrategy<A>, options: { readonly onNext: (emitSeparator: Option.Option<A>) => Z; readonly onAllEnqueued: (emitSeparator: Option.Option<A>) => Z; }): Z; }

Source

Since v2.0.0