-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: refactor NSManagedObjectID iteration logic
- Refactor iterators in `NSManagedObjectIDIterator` to use a closure that returns `AnyIterator` instead of a direct `AnyIterator`. - Adjust `next()` method in `NSManagedObjectIDIterator` to handle the closure-based iterator and to fall back to the next iterator if the current one is exhausted. - Update `UserInfoMerger` to store arrays of closures returning `AnyIterator`s for inserted, updated, and deleted `NSManagedObjectID`s. - Modify `UserInfoMerger` initializer to wrap `makeIterator()` calls in closures, aligning with changes to iterator storage. Signed-off-by: ezoushen <[email protected]>
- Loading branch information
Showing
1 changed file
with
25 additions
and
16 deletions.
There are no files selected for viewing
This file contains 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