MCPcopy Index your code
hub / github.com/callumalpass/tasknotes / startQuickCheck

Method startQuickCheck

src/ui/NotificationService.ts:110–124  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

108 }
109
110 private startQuickCheck(): void {
111 this.quickCheckInterval = window.setInterval(() => {
112 const now = Date.now();
113 const timeSinceLastCheck = now - this.lastQuickCheckTime;
114
115 // Check for system sleep/wake for quick checks too
116 if (timeSinceLastCheck > this.QUICK_CHECK_INTERVAL + 60000) {
117 // 1 minute tolerance
118 // Don't spam with catch-up, just process current queue
119 }
120
121 this.checkNotificationQueue();
122 this.lastQuickCheckTime = now;
123 }, this.QUICK_CHECK_INTERVAL);
124 }
125
126 private async scanTasksAndBuildQueue(): Promise<void> {
127 // Clear existing queue and rebuild

Callers 1

initializeMethod · 0.95

Calls 3

nowMethod · 0.80
setIntervalMethod · 0.65

Tested by

no test coverage detected