MCPcopy
hub / github.com/callumalpass/tasknotes / waitForMigration

Method waitForMigration

src/main.ts:606–615  ·  view source on GitHub ↗

* Public method for views to wait for migration completion

()

Source from the content-addressed store, hash-verified

604 * Public method for views to wait for migration completion
605 */
606 async waitForMigration(): Promise<void> {
607 if (this.migrationPromise) {
608 await this.migrationPromise;
609 }
610
611 // Additional safety check - wait until migration is marked complete
612 while (!this.migrationComplete) {
613 await new Promise((resolve) => window.setTimeout(resolve, 50));
614 }
615 }
616
617 // Methods for updating shared state and emitting events
618

Callers

nothing calls this directly

Calls 1

setTimeoutMethod · 0.65

Tested by

no test coverage detected