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

Function testClockWith

packages/effect/src/TestClock.ts:544–548  ·  view source on GitHub ↗
(f: (testClock: TestClock) => Effect.Effect<A, E, R>)

Source from the content-addressed store, hash-verified

542 * @since 2.0.0
543 */
544export const testClockWith = <A, E, R>(f: (testClock: TestClock) => Effect.Effect<A, E, R>): Effect.Effect<A, E, R> =>
545 core.fiberRefGetWith(
546 defaultServices.currentServices,
547 (services) => f(pipe(services, Context.get(clock.clockTag)) as TestClock)
548 )
549
550/**
551 * Accesses the current time of a `TestClock` instance in the context in

Callers 7

adjustFunction · 0.85
TestClock.tsFile · 0.85
saveFunction · 0.85
setTimeFunction · 0.85
sleepFunction · 0.85
sleepsFunction · 0.85
testClockFunction · 0.85

Calls 3

fFunction · 0.70
pipeFunction · 0.70
getMethod · 0.65

Tested by

no test coverage detected