TelemetryDeck / SwiftSDK

Swift SDK for TelemetryDeck, a privacy-conscious analytics service for apps and websites.
https://telemetrydeck.com/
Other
148 stars 30 forks source link

SignalCache can perform FileIO on the main thread. #137

Open Dean151 opened 5 months ago

Dean151 commented 5 months ago

Related:

Capture d’écran 2024-01-28 à 19 40 46

Thankfully, Marcin helped out to understand: https://mastodon.social/@krzyzanowskim/111835373363274251

Turns out that calling .sync will block the calling thread, so the fileIO is indeed blocking the main thread, because backupCache is called from either appWillTerminate or didEnterBackground methods.