MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / finish

Function finish

packages/vite/runtime/core-aliases-early.ts:209–217  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

207 }
208 let done = false;
209 const finish = () => {
210 if (done) return;
211 done = true;
212 try {
213 a.off(a.activityStartedEvent || 'activityStarted', onAny);
214 a.off(a.activityResumedEvent || 'activityResumed', onAny);
215 } catch {}
216 fn();
217 };
218 const onAny = () => {
219 if (isReady()) finish();
220 };

Callers 1

onAnyFunction · 0.70

Calls 1

offMethod · 0.65

Tested by

no test coverage detected