await_block() — svelte Function Reference
Architecture documentation for the await_block() function in index.js from the svelte codebase.
Entity Profile
Dependency Diagram
graph TD 9c482beb_0f70_3bd7_4e74_caae944002b8["await_block()"] 1c4bc493_24af_177e_7307_a999997aceac["index.js"] 9c482beb_0f70_3bd7_4e74_caae944002b8 -->|defined in| 1c4bc493_24af_177e_7307_a999997aceac b898b311_bec4_34ca_1aa6_2a0ff69b0212["is_promise()"] 9c482beb_0f70_3bd7_4e74_caae944002b8 -->|calls| b898b311_bec4_34ca_1aa6_2a0ff69b0212 6f1eae94_35bd_e5bc_d962_31f3ce608951["push()"] 9c482beb_0f70_3bd7_4e74_caae944002b8 -->|calls| 6f1eae94_35bd_e5bc_d962_31f3ce608951 style 9c482beb_0f70_3bd7_4e74_caae944002b8 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
packages/svelte/src/internal/server/index.js lines 400–411
function await_block(renderer, promise, pending_fn, then_fn) {
if (is_promise(promise)) {
renderer.push(BLOCK_OPEN);
promise.then(null, noop);
if (pending_fn !== null) {
pending_fn();
}
} else if (then_fn !== null) {
renderer.push(BLOCK_OPEN_ELSE);
then_fn(promise);
}
}
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does await_block() do?
await_block() is a function in the svelte codebase, defined in packages/svelte/src/internal/server/index.js.
Where is await_block() defined?
await_block() is defined in packages/svelte/src/internal/server/index.js at line 400.
What does await_block() call?
await_block() calls 2 function(s): is_promise, push.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free