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

Function whenReady

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

Source from the content-addressed store, hash-verified

659}
660
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}
673
674async function initialize() {
675 await whenReady();

Callers 1

initializeFunction · 0.85

Calls 1

waitFunction · 0.85

Tested by

no test coverage detected