We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2998b0c commit c4e4002Copy full SHA for c4e4002
Sources/ManagedModels/Context/NSManagedObjectContext+Data.swift
@@ -48,7 +48,8 @@ public extension NSManagedObjectContext {
48
public extension NSManagedObjectContext {
49
50
@inlinable
51
- func fetchCount(_ request: NSFetchRequest<NSFetchRequestResult>) throws -> Int
+ func fetchCount<T>(_ request: NSFetchRequest<T>) throws -> Int
52
+ where T: NSFetchRequestResult
53
{
54
try count(for: request)
55
}
0 commit comments