* Public method for views to wait for migration completion
()
| 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 |
nothing calls this directly
no test coverage detected