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

Method sleep

packages/effect/src/Clock.ts:148–148  ·  view source on GitHub ↗

* Asynchronously sleeps for the specified duration. * * **When to use** * * Use to delay an `Effect` workflow by a duration through this `Clock` service.

(duration: Duration.Duration)

Source from the content-addressed store, hash-verified

146 * Use to delay an `Effect` workflow by a duration through this `Clock` service.
147 */
148 sleep(duration: Duration.Duration): Effect<void>
149}
150
151/**

Callers 15

pubsub.tsFile · 0.65
queue.tsFile · 0.65
e2eSuiteFunction · 0.65
NodeSink.test.tsFile · 0.65
startWatchFunction · 0.65
node-terminal.tsFile · 0.65

Implementers 1

ClockImplpackages/effect/src/internal/effect.ts

Calls

no outgoing calls

Tested by 7

startWatchFunction · 0.52
assertTickerSurvivesFunction · 0.52
executeFunction · 0.52
makeFunction · 0.52
makeInnerFunction · 0.52
pollUntilCompleteFunction · 0.52
makeFailoverStorageFunction · 0.52