@@ -15,6 +15,7 @@ extension CoreDataRepository {
1515 // MARK: Count
1616
1717 /// Get the count or quantity of managed object instances that satisfy the predicate.
18+ @inlinable
1819 public func count< Value: Numeric > (
1920 predicate: NSPredicate ,
2021 entityDesc: NSEntityDescription ,
@@ -35,6 +36,7 @@ extension CoreDataRepository {
3536 }
3637
3738 /// Subscribe to the count or quantity of managed object instances that satisfy the predicate.
39+ @inlinable
3840 public func countSubscription< Value: Numeric > (
3941 predicate: NSPredicate ,
4042 entityDesc: NSEntityDescription ,
@@ -55,6 +57,7 @@ extension CoreDataRepository {
5557 }
5658
5759 /// Subscribe to the count or quantity of managed object instances that satisfy the predicate.
60+ @inlinable
5861 public func countThrowingSubscription< Value: Numeric > (
5962 predicate: NSPredicate ,
6063 entityDesc: NSEntityDescription ,
@@ -77,6 +80,7 @@ extension CoreDataRepository {
7780 // MARK: Sum
7881
7982 /// Get the sum of a managed object's numeric property for all instances that satisfy the predicate.
83+ @inlinable
8084 public func sum< Value: Numeric > (
8185 predicate: NSPredicate ,
8286 entityDesc: NSEntityDescription ,
@@ -95,6 +99,7 @@ extension CoreDataRepository {
9599 }
96100
97101 /// Subscribe to the sum of a managed object's numeric property for all instances that satisfy the predicate.
102+ @inlinable
98103 public func sumSubscription< Value: Numeric > (
99104 predicate: NSPredicate ,
100105 entityDesc: NSEntityDescription ,
@@ -120,6 +125,7 @@ extension CoreDataRepository {
120125 }
121126
122127 /// Subscribe to the sum of a managed object's numeric property for all instances that satisfy the predicate.
128+ @inlinable
123129 public func sumThrowingSubscription< Value: Numeric > (
124130 predicate: NSPredicate ,
125131 entityDesc: NSEntityDescription ,
@@ -147,6 +153,7 @@ extension CoreDataRepository {
147153 // MARK: Average
148154
149155 /// Get the average of a managed object's numeric property for all instances that satisfy the predicate.
156+ @inlinable
150157 public func average< Value: Numeric > (
151158 predicate: NSPredicate ,
152159 entityDesc: NSEntityDescription ,
@@ -165,6 +172,7 @@ extension CoreDataRepository {
165172 }
166173
167174 /// Subscribe to the average of a managed object's numeric property for all instances that satisfy the predicate.
175+ @inlinable
168176 public func averageSubscription< Value: Numeric > (
169177 predicate: NSPredicate ,
170178 entityDesc: NSEntityDescription ,
@@ -190,6 +198,7 @@ extension CoreDataRepository {
190198 }
191199
192200 /// Subscribe to the average of a managed object's numeric property for all instances that satisfy the predicate.
201+ @inlinable
193202 public func averageThrowingSubscription< Value: Numeric > (
194203 predicate: NSPredicate ,
195204 entityDesc: NSEntityDescription ,
@@ -217,6 +226,7 @@ extension CoreDataRepository {
217226 // MARK: Min
218227
219228 /// Get the min or minimum of a managed object's numeric property for all instances that satisfy the predicate.
229+ @inlinable
220230 public func min< Value: Numeric > (
221231 predicate: NSPredicate ,
222232 entityDesc: NSEntityDescription ,
@@ -236,6 +246,7 @@ extension CoreDataRepository {
236246
237247 /// Subscribe to the min or minimum of a managed object's numeric property for all instances that satisfy the
238248 /// predicate.
249+ @inlinable
239250 public func minSubscription< Value: Numeric > (
240251 predicate: NSPredicate ,
241252 entityDesc: NSEntityDescription ,
@@ -262,6 +273,7 @@ extension CoreDataRepository {
262273
263274 /// Subscribe to the min or minimum of a managed object's numeric property for all instances that satisfy the
264275 /// predicate.
276+ @inlinable
265277 public func minThrowingSubscription< Value: Numeric > (
266278 predicate: NSPredicate ,
267279 entityDesc: NSEntityDescription ,
@@ -289,6 +301,7 @@ extension CoreDataRepository {
289301 // MARK: Max
290302
291303 /// Get the max or maximum of a managed object's numeric property for all instances that satisfy the predicate.
304+ @inlinable
292305 public func max< Value: Numeric > (
293306 predicate: NSPredicate ,
294307 entityDesc: NSEntityDescription ,
@@ -308,6 +321,7 @@ extension CoreDataRepository {
308321
309322 /// Subscribe to the max or maximum of a managed object's numeric property for all instances that satisfy the
310323 /// predicate.
324+ @inlinable
311325 public func maxSubscription< Value: Numeric > (
312326 predicate: NSPredicate ,
313327 entityDesc: NSEntityDescription ,
@@ -334,6 +348,7 @@ extension CoreDataRepository {
334348
335349 /// Subscribe to the max or maximum of a managed object's numeric property for all instances that satisfy the
336350 /// predicate.
351+ @inlinable
337352 public func maxThrowingSubscription< Value: Numeric > (
338353 predicate: NSPredicate ,
339354 entityDesc: NSEntityDescription ,
@@ -360,6 +375,7 @@ extension CoreDataRepository {
360375
361376 // MARK: Internals
362377
378+ @usableFromInline
363379 enum AggregateFunction : String {
364380 case count
365381 case sum
@@ -379,7 +395,8 @@ extension CoreDataRepository {
379395 return value
380396 }
381397
382- private static func send< Value> (
398+ @usableFromInline
399+ static func send< Value> (
383400 function: AggregateFunction ,
384401 context: NSManagedObjectContext ,
385402 predicate: NSPredicate ,
0 commit comments