Repository navigation
Sync calendario: lettura fuori dal main thread, push EventKit raggruppati (#12) - #61
Merged
Merged
Conversation
…ventKit in un solo commit (#12) - syncNow: events(matching:) sui 13 mesi in un Task.detached; sul main resta solo l'applicazione degli eventi alle task. - pushIfNeeded: un unico flush per raffica di touch(); modifiche e rimozioni con commit: false e un solo store.commit() (gli eventi nuovi si salvano subito per avere l'eventIdentifier). Errori in lastError invece di try? silenziosi. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01YNpTLZrjEhyL9NsUo5g35L
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Seconda parte di #12 (la prima è in #60).
Cosa cambia
events(matching:)sulla finestra di 13 mesi gira in unTask.detached(priorità.utility); sul main thread resta solo l'applicazione degli eventi alle task. Store ed eventi passano tra i thread dentro un box@unchecked Sendable(EventKit è thread-safe in lettura; gliEKEventletti non vengono più toccati sullo sfondo).touch(): prima c'era un timer e unstore.savesincrono per ogni task; ora c'è un solo flush per raffica (400 ms dall'ultimotouch()). Modifiche e rimozioni usanocommit: false, seguite da un unicostore.commit(). Gli eventi nuovi si salvano subito, perché senza commit non avrebbero l'eventIdentifiere il push successivo creerebbe un doppione.lastError(visibile in Impostazioni → Sincronizzazione) invece di sparire in untry?([P1][Tech-debt] Errori ingoiati in silenzio: 52 try?, 18 assertionFailure, nessun logging #17).Da verificare
@ModelActordi background per l'applicazione dell'import su archivi molto grandi.🤖 Generated with Claude Code
https://claude.ai/code/session_01YNpTLZrjEhyL9NsUo5g35L
Generated by Claude Code