Repository navigation
Replace Worker and Database with a Mail.Store actor - #3
Merged
Merged
Conversation
Store runs each operation on a private dispatch queue as part of the calling task, so task cancellation reaches SQLite and parsing without a token. Overlapping calls wait instead of failing with operationInProgress, and each operation closes its connection before it reads message files. Store.init validates the configuration, which adds a snapshot time limit. checkAccess() checks that the index can be opened. Operations run at the calling task's priority on macOS 14 and later. Cursors replace offsets for pagination. The new Envelope product re-exports Mail and Emlx and adds Store.content(for:), which checks the message's identity.
The usage examples use the Envelope product, cursor pagination, and task cancellation.
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.
No description provided.