sleep function

Last updated: 2026-03-05T20:45:07.036Z

Metrics

LOC: 3 Complexity: 1 Params: 1

Signature

sleep(ms: number): : Promise<void>

Source Code

function sleep(ms: number): Promise<void> {
  return new Promise((resolve) => setTimeout(resolve, ms));
}

No outgoing dependencies.

Impact (Incoming)

graph LR sleep["sleep"] injectContentScript["injectContentScript"] runLoop["runLoop"] handleFill["handleFill"] handleWait["handleWait"] injectContentScript -->|calls| sleep runLoop -->|calls| sleep handleFill -->|calls| sleep handleWait -->|calls| sleep style sleep fill:#dbeafe,stroke:#2563eb,stroke-width:2px click sleep "25404f77365ed229.html" click injectContentScript "8371aca98c2d1d41.html" click runLoop "c94a70bb97b4ccad.html" click handleFill "8f674e688d002684.html" click handleWait "1e0c6f2b3548f948.html"
SourceType
injectContentScript calls
runLoop calls
handleFill calls
handleWait calls