Sanity Library Reference Docs
    Preparing search index...
    Sleeper: (ms: number) => Promise<void>

    Suspends for ms before resolving. The engine's only deliberate wait is a retry policy's backoff between attempts inside one drainEffects call, so a deterministic harness substitutes one that moves its Clock instead of spending real time. Injected once beside the clock, never per call.

    A substitute must not resolve before ms has passed on whatever clock the engine reads: a policy's pacing and its expiryMs window are both judged against that clock.

    Type declaration

      • (ms: number): Promise<void>
      • Parameters

        • ms: number

        Returns Promise<void>