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

Function run

benchmarking/benchmarks/reactivity/tests/kairo_avoidable.bench.js:22–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20 return {
21 destroy,
22 run() {
23 $.flush(() => {
24 $.set(head, 1);
25 });
26 assert.equal($.get(computed5), 6);
27 for (let i = 0; i < 1000; i++) {
28 $.flush(() => {
29 $.set(head, i);
30 });
31 assert.equal($.get(computed5), 6);
32 }
33 }
34 };
35};

Callers

nothing calls this directly

Calls 3

flushMethod · 0.80
setMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected