-
Notifications
You must be signed in to change notification settings - Fork 1
Closed
Labels
bugSomething isn't workingSomething isn't workingcriticalCritical priorityCritical priorityperformancePerformance optimizationPerformance optimizationswiftSwift/SwiftUI codeSwift/SwiftUI codev1.7.0Target: v1.7.0 releaseTarget: v1.7.0 release
Description
Bug Description
In NotificationService.swift:34, synchronous dbQueue.write calls block the actor's cooperative thread pool. Under load (many notifications), this can starve other actors and cause UI freezes.
Location
CreedFlow/Sources/CreedFlow/Services/Notifications/NotificationService.swift:34
Severity
Critical — Blocks Swift concurrency thread pool, potential deadlock.
Steps to Fix
- Use
dbQueue.asyncWriteor wrap inTask.detachedwith a non-actor-isolated closure - Or move DB writes to a dedicated dispatch queue
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingcriticalCritical priorityCritical priorityperformancePerformance optimizationPerformance optimizationswiftSwift/SwiftUI codeSwift/SwiftUI codev1.7.0Target: v1.7.0 releaseTarget: v1.7.0 release