-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
P2: mediumMedium priority — targets v1.0Medium priority — targets v1.0layer: daydreamerBackground consolidation (LTP/LTD, recalc)Background consolidation (LTP/LTD, recalc)
Milestone
Description
Why: Need cooperative background loop that doesn't block foreground.
-
P2-A1: Implement
daydreamer/IdleScheduler.ts- Loop via
requestIdleCallback(browser) orsetImmediate(Node) - Interruptible (yield after N ms of work)
- CPU budget awareness (pause if main thread busy)
- Task queue (prioritize high-value work)
- Loop via
-
P2-A2: Add scheduler test coverage
tests/daydreamer/IdleScheduler.test.ts- Test cooperative yielding
- Test interruption doesn't corrupt state
Exit Criteria: Background loop runs without blocking UI.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2: mediumMedium priority — targets v1.0Medium priority — targets v1.0layer: daydreamerBackground consolidation (LTP/LTD, recalc)Background consolidation (LTP/LTD, recalc)