Home / Function/ sleep() — astro Function Reference

sleep() — astro Function Reference

Architecture documentation for the sleep() function in async-components.jsx from the astro codebase.

Entity Profile

Dependency Diagram

graph TD
  4a8ac17b_e994_ee09_bcb2_2cddcf98d0cd["sleep()"]
  f055b9af_141a_1d5d_191b_9a6d24e5ebf0["async-components.jsx"]
  4a8ac17b_e994_ee09_bcb2_2cddcf98d0cd -->|defined in| f055b9af_141a_1d5d_191b_9a6d24e5ebf0
  17272460_9653_d767_82e0_eb8d062bcad0["AsyncComponent()"]
  17272460_9653_d767_82e0_eb8d062bcad0 -->|calls| 4a8ac17b_e994_ee09_bcb2_2cddcf98d0cd
  7339a72c_1a69_6e3a_8080_52d1c8f4e32a["AsyncErrorComponent()"]
  7339a72c_1a69_6e3a_8080_52d1c8f4e32a -->|calls| 4a8ac17b_e994_ee09_bcb2_2cddcf98d0cd
  style 4a8ac17b_e994_ee09_bcb2_2cddcf98d0cd fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/astro/test/fixtures/solid-component/src/components/async-components.jsx lines 7–7

const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));

Subdomains

Frequently Asked Questions

What does sleep() do?
sleep() is a function in the astro codebase, defined in packages/astro/test/fixtures/solid-component/src/components/async-components.jsx.
Where is sleep() defined?
sleep() is defined in packages/astro/test/fixtures/solid-component/src/components/async-components.jsx at line 7.
What calls sleep()?
sleep() is called by 2 function(s): AsyncComponent, AsyncErrorComponent.

Analyze Your Own Codebase

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

Try Supermodel Free