wait() — astro Function Reference
Architecture documentation for the wait() function in rendering.test.js from the astro codebase.
Entity Profile
Dependency Diagram
graph TD 180b1381_c14e_3309_b9a2_d05bc9e8a006["wait()"] 271f8d84_b6c9_ef7e_8f82_51cf97170259["ManualResetEvent"] 180b1381_c14e_3309_b9a2_d05bc9e8a006 -->|defined in| 271f8d84_b6c9_ef7e_8f82_51cf97170259 style 180b1381_c14e_3309_b9a2_d05bc9e8a006 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/astro/test/units/render/rendering.test.js lines 301–315
wait() {
// Promise constructor callbacks are called immediately
// so retrieving the value of "resolve" should
// be safe to do.
if (!this.#promise) {
this.#promise = this.#done
? Promise.resolve()
: new Promise((resolve) => {
this.#resolve = resolve;
});
}
return this.#promise;
}
Domain
Subdomains
Source
Frequently Asked Questions
What does wait() do?
wait() is a function in the astro codebase, defined in packages/astro/test/units/render/rendering.test.js.
Where is wait() defined?
wait() is defined in packages/astro/test/units/render/rendering.test.js at line 301.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free