MCPcopy Create free account
hub / github.com/Effect-TS/effect / updater

Function updater

packages/effect/src/internal/metric.ts:413–413  ·  view source on GitHub ↗
(defect: unknown)

Source from the content-addressed store, hash-verified

411 ) => Effect.Effect<A, E, R>
412>(3, (self, metric, f) => {
413 const updater = (defect: unknown) => update(metric, f(defect))
414 return effect_.tapDefect(self, (cause) => core.forEachSequentialDiscard(Cause.defects(cause), updater))
415})
416

Callers

nothing calls this directly

Calls 2

updateFunction · 0.70
fFunction · 0.50

Tested by

no test coverage detected