MCPcopy Create free account
hub / github.com/Moddable-OpenSource/moddable / doIdle

Method doIdle

tools/testmc/main.js:80–86  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

78 assert.sameValue(checksum, this.checksum, message ?? "image mismatch");
79 }
80 doIdle() {
81 this.context.onIdle();
82 const promises = this.#promises;
83 this.#promises = [];
84 for (let i = 0; i < promises.length; i++)
85 promises[i]();
86 }
87 doTouchBegan(id, x, y, ticks) {
88 return new Promise((resolve, reject) => {
89 Timer.set(() => {

Callers 4

startMethod · 0.95
checkImageMethod · 0.95
doTouchBeganMethod · 0.95
doTouchEndedMethod · 0.95

Calls 1

onIdleMethod · 0.80

Tested by

no test coverage detected