Causes the persistent container to execute the block against a new private queue context.
- iOS 10.0+
- macOS 10.12+
- tvOS 10.0+
- watchOS 3.0+
- Core Data
A block that is executed by the persistent container against a newly created private context. The private context is passed into the block as part of the execution of the block.
Each time this method is invoked, the persistent container creates a new
NSManaged with the
concurrency set to
NSManaged. The persistent container then executes the passed in block against that newly created context on the context’s private queue.