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

Function withLive

packages/effect/src/testing/TestClock.ts:278–280  ·  view source on GitHub ↗
(effect: Effect.Effect<A, E, R>)

Source from the content-addressed store, hash-verified

276 const monotonicTimeNanos = Effect.sync(monotonicTimeNanosUnsafe)
277
278 function withLive<A, E, R>(effect: Effect.Effect<A, E, R>) {
279 return Effect.provideService(effect, Clock.Clock, liveClock)
280 }
281
282 /**
283 * Forks a fiber that will display a warning message if a test is using time

Callers

nothing calls this directly

Calls 2

testClockWithFunction · 0.85
withLiveMethod · 0.80

Tested by

no test coverage detected