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

Method install

modules/base/sleep/sleep.js:22–27  ·  view source on GitHub ↗
(handler)

Source from the content-addressed store, hash-verified

20
21export class Sleep {
22 static install(handler) {
23 // this dance allows handlers to be installed both at preload and run time
24 if (Object.isFrozen(Sleep.prototype.handlers))
25 Sleep.prototype.handlers = Array.from(Sleep.prototype.handlers);
26 Sleep.prototype.handlers.push(handler);
27 }
28
29 static getPersistentValue(index) @ "xs_get_persistent_value";
30 static setPersistentValue(index, value) @ "xs_set_persistent_value";

Callers 13

cli.jsFile · 0.80
network.jsFile · 0.80
i2c.jsFile · 0.80
sensor.jsFile · 0.80
pixelsout.jsFile · 0.80
archive.jsFile · 0.80
digital.jsFile · 0.80
files.jsFile · 0.80
esp.jsFile · 0.80
pico.jsFile · 0.80
main.jsFile · 0.80
random.jsFile · 0.80

Calls 2

fromMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected