/** * Returns an aspect that will update this metric with the success value of * the effects that it is applied to. * * @tsplus getter effect/core/io/Metrics/Metric trackSuccess */ export function trackSuccess(self: Metric) { return (effect: Effect): Effect => self.trackSuccessWith((a: In) => a)(effect) }