MCPcopy Create free account
hub / github.com/esengine/esengine / checkForUpdatesOnStartup

Function checkForUpdatesOnStartup

packages/editor-app/src/utils/updater.ts:67–75  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

65 * 返回 Promise 以便调用者可以获取结果
66 */
67export async function checkForUpdatesOnStartup(): Promise<UpdateCheckResult> {
68 // 延迟 2 秒后检查,避免影响启动速度
69 return new Promise((resolve) => {
70 setTimeout(async () => {
71 const result = await checkForUpdates();
72 resolve(result);
73 }, 2000);
74 });
75}

Callers 2

initializeEditorFunction · 0.90
StartupPageFunction · 0.90

Calls 2

checkForUpdatesFunction · 0.85
resolveFunction · 0.85

Tested by

no test coverage detected