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

Function make

packages/effect/src/internal/metric/hook.ts:29–41  ·  view source on GitHub ↗
(
  options: {
    readonly get: LazyArg<Out>
    readonly update: (input: In) => void
    readonly modify: (input: In) => void
  }
)

Source from the content-addressed store, hash-verified

27
28/** @internal */
29export const make = <In, Out>(
30 options: {
31 readonly get: LazyArg<Out>
32 readonly update: (input: In) => void
33 readonly modify: (input: In) => void
34 }
35): MetricHook.MetricHook<In, Out> => ({
36 [MetricHookTypeId]: metricHookVariance,
37 pipe() {
38 return pipeArguments(this, arguments)
39 },
40 ...options
41})
42
43/** @internal */
44export const onModify = dual<

Callers 5

counterFunction · 0.70
frequencyFunction · 0.70
gaugeFunction · 0.70
histogramFunction · 0.70
summaryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected