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

Function sleep

packages/effect/src/internal/defaultServices.ts:45–48  ·  view source on GitHub ↗
(duration: Duration.DurationInput)

Source from the content-addressed store, hash-verified

43
44/** @internal */
45export const sleep = (duration: Duration.DurationInput): Effect.Effect<void> => {
46 const decodedDuration = Duration.decode(duration)
47 return clockWith((clock) => clock.sleep(decodedDuration))
48}
49
50/** @internal */
51export const defaultServicesWith = <A, E, R>(

Callers

nothing calls this directly

Calls 3

clockWithFunction · 0.85
decodeMethod · 0.80
sleepMethod · 0.65

Tested by

no test coverage detected