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

File TestClock.ts

packages/effect/src/testing/TestClock.ts  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1/**
2 * Controllable `Clock` service for tests.
3 *
4 * Instead of waiting for real time to pass, effects that use `Effect.sleep`,

Callers

nothing calls this directly

Calls 8

advanceToMethod · 0.80
contextMethod · 0.80
addFinalizerMethod · 0.80
awaitMethod · 0.65
setMethod · 0.65
BigIntInterface · 0.50
stepFunction · 0.50
wakeMethod · 0.45

Tested by

no test coverage detected