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

Function withDuration

packages/effect/src/internal/sink.ts:1952–1955  ·  view source on GitHub ↗
(
  self: Sink.Sink<A, In, L, E, R>
)

Source from the content-addressed store, hash-verified

1950
1951/** @internal */
1952export const withDuration = <A, In, L, E, R>(
1953 self: Sink.Sink<A, In, L, E, R>
1954): Sink.Sink<[A, Duration.Duration], In, L, E, R> =>
1955 pipe(self, summarized(Clock.currentTimeMillis, (start, end) => Duration.millis(end - start)))
1956
1957/** @internal */
1958export const zip = dual<

Callers 1

sink.tsFile · 0.85

Calls 1

pipeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…