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

Function sleep

packages/effect/src/TestClock.ts:518–521  ·  view source on GitHub ↗
(durationInput: Duration.DurationInput)

Source from the content-addressed store, hash-verified

516 * @since 2.0.0
517 */
518export const sleep = (durationInput: Duration.DurationInput): Effect.Effect<void> => {
519 const duration = Duration.decode(durationInput)
520 return testClockWith((testClock) => testClock.sleep(duration))
521}
522
523/**
524 * Accesses a `TestClock` instance in the context and returns a list of

Callers

nothing calls this directly

Calls 3

testClockWithFunction · 0.85
decodeMethod · 0.80
sleepMethod · 0.65

Tested by

no test coverage detected