Skip to content

Commit a92d69d

Browse files
committed
Add detail to custom method doc comment
feature/add-method-for-custom-operations-in-context
1 parent 64fe300 commit a92d69d

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Sources/CoreDataRepository/CoreDataRepository+Custom.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ import Foundation
1212
extension CoreDataRepository {
1313
/// Escape hatch method for performing arbitrary operations inside a 'scratchpad' `NSManagedObjectContext` where
1414
/// 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``.
1518
public func custom<T>(
1619
schedule: NSManagedObjectContext.ScheduledTaskType = .enqueued,
1720
block: @escaping (

0 commit comments

Comments
 (0)