Home / Function/ wait() — react Function Reference

wait() — react Function Reference

Architecture documentation for the wait() function in runner.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  bd82cd90_6341_9c10_10cc_d4838d6dab9d["wait()"]
  b4fea2f4_8c60_e575_c4e5_90aa97dfacad["runner.js"]
  bd82cd90_6341_9c10_10cc_d4838d6dab9d -->|defined in| b4fea2f4_8c60_e575_c4e5_90aa97dfacad
  cba78ff8_78c0_6f8d_5122_9aa5bab6d1d7["runBenchmarks()"]
  cba78ff8_78c0_6f8d_5122_9aa5bab6d1d7 -->|calls| bd82cd90_6341_9c10_10cc_d4838d6dab9d
  style bd82cd90_6341_9c10_10cc_d4838d6dab9d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

scripts/bench/runner.js lines 23–25

function wait(val) {
  return new Promise(resolve => setTimeout(resolve, val));
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does wait() do?
wait() is a function in the react codebase, defined in scripts/bench/runner.js.
Where is wait() defined?
wait() is defined in scripts/bench/runner.js at line 23.
What calls wait()?
wait() is called by 1 function(s): runBenchmarks.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free