MCPcopy Index your code
hub / github.com/NativeScript/SimDeck / waitForBooted

Function waitForBooted

scripts/integration/android.mjs:735–745  ·  view source on GitHub ↗
(udid)

Source from the content-addressed store, hash-verified

733}
734
735async function waitForBooted(udid) {
736 const avdName = udid.replace(/^android:/, "");
737 const deadline = Date.now() + 180_000;
738 while (Date.now() < deadline) {
739 if (runningAndroidAvds().has(avdName)) {
740 return;
741 }
742 await sleep(1_000);
743 }
744 throw new Error(`Timed out waiting for ${udid} to boot.`);
745}
746
747async function cleanupAndroid() {
748 if (!session || !androidUDID || !shutdownAndroidAfterRun) {

Callers 1

mainFunction · 0.85

Calls 3

runningAndroidAvdsFunction · 0.85
sleepFunction · 0.70
replaceMethod · 0.65

Tested by

no test coverage detected