MCPcopy Create free account
hub / github.com/DjDeveloperr/deno_desktop / cleanup

Method cleanup

examples/common.js:83–92  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81 }
82
83 cleanup() {
84 if (this.mainLoopInterval) {
85 clearInterval(this.mainLoopInterval);
86 this.mainLoopInterval = null;
87 }
88
89 this.surface.destroy();
90 this.window.close();
91 this.device.destroy();
92 }
93
94 async loadShader(name) {
95 const code = await Deno.readTextFile(new URL(`./shaders/${name}.wgsl`, import.meta.url));

Callers 1

runMethod · 0.95

Calls 2

destroyMethod · 0.80
closeMethod · 0.80

Tested by

no test coverage detected