effect-io-ai

Package: effect
Module: Effect

Effect.withMetric

Associates a metric with the current effect, updating it as the effect progresses.

Signature

declare const withMetric: { <Type, In, Out>(metric: Metric.Metric<Type, In, Out>): <A extends In, E, R>(self: Effect<A, E, R>) => Effect<A, E, R>; <A extends In, E, R, Type, In, Out>(self: Effect<A, E, R>, metric: Metric.Metric<Type, In, Out>): Effect<A, E, R>; }

Source

Since v2.0.0