MCPcopy
hub / github.com/wavetermdev/waveterm / start

Method start

emain/updater.ts:126–134  ·  view source on GitHub ↗

* Check for updates and start the background update check, if configured.

()

Source from the content-addressed store, hash-verified

124 * Check for updates and start the background update check, if configured.
125 */
126 async start() {
127 if (this.autoCheckEnabled) {
128 console.log("starting updater");
129 this.autoCheckInterval = setInterval(() => {
130 fireAndForget(() => this.checkForUpdates(false));
131 }, 600000); // intervals are unreliable when an app is suspended so we will check every 10 mins if the interval has passed.
132 await this.checkForUpdates(false);
133 }
134 }
135
136 /**
137 * Stop the background update check, if configured.

Callers 1

configureAutoUpdaterFunction · 0.80

Calls 2

checkForUpdatesMethod · 0.95
fireAndForgetFunction · 0.90

Tested by

no test coverage detected