MCPcopy Create free account
hub / github.com/FlashpointProject/launcher / wait

Function wait

src/back/index.ts:663–669  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

661async function whenReady(): Promise<void> {
662 return new Promise<void>((resolve) => {
663 const wait = () => {
664 if (state.readyForInit) {
665 resolve();
666 } else {
667 setTimeout(wait, 1000);
668 }
669 };
670 wait();
671 });
672}

Callers 1

whenReadyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected