We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 64fe300 commit a92d69dCopy full SHA for a92d69d
1 file changed
Sources/CoreDataRepository/CoreDataRepository+Custom.swift
@@ -12,6 +12,9 @@ import Foundation
12
extension CoreDataRepository {
13
/// Escape hatch method for performing arbitrary operations inside a 'scratchpad' `NSManagedObjectContext` where
14
/// changes will be discarded if not saved.
15
+ ///
16
+ /// The caller is responsible for saving the contexts and cleaning up if needed.
17
+ /// All this method provides is the contexts and mapping `Error` into ``CoreDataError``.
18
public func custom<T>(
19
schedule: NSManagedObjectContext.ScheduledTaskType = .enqueued,
20
block: @escaping (
0 commit comments