Skip to content

Commit

Permalink
Clarify interval usage
Browse files Browse the repository at this point in the history
  • Loading branch information
twschiller committed Feb 15, 2024
1 parent 8700c22 commit 3d70082
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/store/enterprise/managedStorage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ export async function watchDelayedStorageInitialization(): Promise<void> {
return;
}

// Use setInterval instead of pollUntilTruthy to clear on browser.storage.onChanged. pollUntilTruthy doesn't
// currently directly support an abort signal.
initializationInterval = setInterval(
async () => {
const values = await readPopulatedManagedStorage();
Expand Down

0 comments on commit 3d70082

Please sign in to comment.