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

Function run

benchmarking/benchmarks/reactivity/tests/kairo_unstable.bench.js:27–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

25 return {
26 destroy,
27 run() {
28 $.flush(() => {
29 $.set(head, 1);
30 });
31 assert.equal($.get(current), 40);
32 counter = 0;
33 for (let i = 0; i < 100; i++) {
34 $.flush(() => {
35 $.set(head, i);
36 });
37 }
38 assert.equal(counter, 100);
39 }
40 };
41};

Callers

nothing calls this directly

Calls 3

flushMethod · 0.80
setMethod · 0.65
getMethod · 0.45

Tested by

no test coverage detected