MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / suspend

Function suspend

web/rusense/app/loader.js:117–127  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

115
116/** Leave the RuSense tab — stop the stream and free the mounted view. */
117export function suspend() {
118 if (current && current.cleanup) {
119 try { current.cleanup(); } catch (e) { /* ignore */ }
120 current = { route: current.route, cleanup: null };
121 }
122 if (viewEl) viewEl.innerHTML = '';
123 // Allow the next init()/show() to remount the (now-wiped) view.
124 activeRoute = null;
125 try { sensingService.stop(); } catch (e) { /* ignore */ }
126 started = false;
127}

Callers

nothing calls this directly

Calls 2

cleanupMethod · 0.45
stopMethod · 0.45

Tested by

no test coverage detected