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

Function onChanged

tools/testmc/main.js:162–168  ·  view source on GitHub ↗
(property)

Source from the content-addressed store, hash-verified

160 return new Promise((resolve, reject) => {
161 const w = new WiFi({
162 onChanged(property) {
163 if (this.address) {
164 Timer.clear(this.timer);
165 this.close();
166 resolve();
167 }
168 }
169 });
170 if (w.address) {
171 resolve();

Callers

nothing calls this directly

Calls 3

resolveFunction · 0.70
closeMethod · 0.65
clearMethod · 0.45

Tested by

no test coverage detected