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

Function value

packages/effect/src/Metric.ts:2591–2597  ·  view source on GitHub ↗
(
  self: Metric<Input, State>
)

Source from the content-addressed store, hash-verified

2589 * @since 2.0.0
2590 */
2591export const value = <Input, State>(
2592 self: Metric<Input, State>
2593): Effect<State> =>
2594 InternalEffect.flatMap(
2595 InternalEffect.context(),
2596 (context) => InternalEffect.sync(() => self.valueUnsafe(context))
2597 )
2598
2599/**
2600 * Modifies the metric with the specified input.

Callers 10

Redacted.tsFile · 0.70
RecordFunction · 0.70
OptionFunction · 0.70
ExitFunction · 0.70
ReadonlyMapFunction · 0.70
HashMapFunction · 0.70
ReadonlySetFunction · 0.70
HashSetFunction · 0.70
ChunkFunction · 0.70
index.test.tsxFile · 0.50

Calls 2

contextMethod · 0.80
syncMethod · 0.45

Tested by

no test coverage detected