MCPcopy
hub / github.com/Effect-TS/effect / withNow

Function withNow

packages/effect/src/internal/metric.ts:537–539  ·  view source on GitHub ↗
(
  self: Metric.Metric<Type, readonly [In, number], Out>
)

Source from the content-addressed store, hash-verified

535
536/** @internal */
537export const withNow = <Type, In, Out>(
538 self: Metric.Metric<Type, readonly [In, number], Out>
539): Metric.Metric<Type, In, Out> => mapInput(self, (input: In) => [input, Date.now()] as const)
540
541/** @internal */
542export const zip = dual<

Callers 1

summaryFunction · 0.85

Calls 1

nowMethod · 0.45

Tested by

no test coverage detected