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

Function setTime

packages/effect/src/testing/TestClock.ts:384–386  ·  view source on GitHub ↗
(timestamp: number)

Source from the content-addressed store, hash-verified

382 }
383
384 function setTime(timestamp: number) {
385 return warningDone.pipe(Effect.andThen(run(() => timestamp)))
386 }
387
388 yield* Effect.addFinalizer(() => warningDone)
389

Callers

nothing calls this directly

Calls 4

testClockWithFunction · 0.85
setTimeMethod · 0.80
pipeMethod · 0.65
runFunction · 0.50

Tested by

no test coverage detected