@@ -17,7 +17,6 @@ protocol ConsoleDataSourceDelegate: AnyObject {
17
17
func dataSource( _ dataSource: ConsoleDataSource , didUpdateWith diff: CollectionDifference < NSManagedObjectID > ? )
18
18
}
19
19
20
- @MainActor
21
20
final class ConsoleDataSource : NSObject , NSFetchedResultsControllerDelegate {
22
21
weak var delegate : ConsoleDataSourceDelegate ?
23
22
@@ -103,7 +102,7 @@ final class ConsoleDataSource: NSObject, NSFetchedResultsControllerDelegate {
103
102
controller. delegate = controllerDelegate
104
103
}
105
104
106
- func bind( _ filters: ConsoleFiltersViewModel ) {
105
+ @ MainActor func bind( _ filters: ConsoleFiltersViewModel ) {
107
106
cancellables = [ ]
108
107
filters. $options. sink { [ weak self] in
109
108
self ? . predicate = $0
@@ -135,16 +134,12 @@ final class ConsoleDataSource: NSObject, NSFetchedResultsControllerDelegate {
135
134
136
135
// MARK: NSFetchedResultsControllerDelegate
137
136
138
- nonisolated func controllerDidChangeContent( _ controller: NSFetchedResultsController < NSFetchRequestResult > ) {
139
- MainActor . assumeIsolated {
140
- delegate? . dataSource ( self , didUpdateWith: nil )
141
- }
137
+ func controllerDidChangeContent( _ controller: NSFetchedResultsController < NSFetchRequestResult > ) {
138
+ delegate? . dataSource ( self , didUpdateWith: nil )
142
139
}
143
140
144
- nonisolated func controller( _ controller: NSFetchedResultsController < NSFetchRequestResult > , didChangeContentWith diff: CollectionDifference < NSManagedObjectID > ) {
145
- MainActor . assumeIsolated {
146
- delegate? . dataSource ( self , didUpdateWith: diff)
147
- }
141
+ func controller( _ controller: NSFetchedResultsController < NSFetchRequestResult > , didChangeContentWith diff: CollectionDifference < NSManagedObjectID > ) {
142
+ delegate? . dataSource ( self , didUpdateWith: diff)
148
143
}
149
144
150
145
// MARK: Predicate
0 commit comments