MCPcopy Index your code
hub / github.com/Effect-TS/effect / value

Function value

packages/effect/src/internal/metric.ts:528–534  ·  view source on GitHub ↗
(
  self: Metric.Metric<Type, In, Out>
)

Source from the content-addressed store, hash-verified

526
527/* @internal */
528export const value = <Type, In, Out>(
529 self: Metric.Metric<Type, In, Out>
530): Effect.Effect<Out> =>
531 core.fiberRefGetWith(
532 core.currentMetricLabels,
533 (tags) => core.sync(() => self.unsafeValue(tags))
534 )
535
536/** @internal */
537export const withNow = <Type, In, Out>(

Callers 1

syncFunction · 0.70

Calls 2

syncMethod · 0.80
unsafeValueMethod · 0.80

Tested by

no test coverage detected