MCPcopy
hub / github.com/sveltejs/svelte / finish

Function finish

packages/svelte/src/internal/client/reactivity/async.js:74–88  ·  view source on GitHub ↗

* @param {Source[]} async

(async)

Source from the content-addressed store, hash-verified

72 * @param {Source[]} async
73 */
74 function finish(async) {
75 if ((parent.f & DESTROYED) !== 0) {
76 return;
77 }
78
79 restore();
80
81 try {
82 fn([...deriveds, ...async]);
83 } catch (error) {
84 invoke_error_boundary(error, parent);
85 }
86
87 unset_context();
88 }
89
90 var decrement_pending = increment_pending();
91

Callers 1

flattenFunction · 0.85

Calls 3

invoke_error_boundaryFunction · 0.90
unset_contextFunction · 0.85
fnFunction · 0.70

Tested by

no test coverage detected