MCPcopy Create free account
hub / github.com/FastLED/FastLED / execute

Method execute

ci/docker_utils/avr8js/execute.ts:41–56  ·  view source on GitHub ↗
(callback: (cpu: CPU) => void)

Source from the content-addressed store, hash-verified

39 }
40
41 async execute(callback: (cpu: CPU) => void) {
42 this.stopped = false;
43 for (;;) {
44 avrInstruction(this.cpu);
45 this.cpu.tick();
46 if (this.cpu.cycles % 500000 === 0) {
47 callback(this.cpu);
48 await new Promise(resolve => {
49 setTimeout(resolve, 0);
50 });
51 if (this.stopped) {
52 break;
53 }
54 }
55 }
56 }
57
58 stop() {
59 this.stopped = true;

Callers 15

executeProgramFunction · 0.95
_init_dbMethod · 0.80
get_by_nameMethod · 0.80
get_by_idMethod · 0.80
insertMethod · 0.80
delete_by_idMethod · 0.80
delete_by_nameMethod · 0.80
get_allMethod · 0.80
get_by_config_hashMethod · 0.80
get_by_platform_typeMethod · 0.80

Calls 1

tickMethod · 0.45