synchronizeToBackingStore(_:)
Synchronizes changes to the backing store.
Declaration
func synchronizeToBackingStore(_ completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)func synchronizeToBackingStore() async throwsParameters
- completionHandler:
A completion handler to run upon successful completion, or to process an error upon failure.
Discussion
If completionHandler is nil, performs the operation synchronously. The completionHandler gets passed error if the synchronization fails. It should block (or fails if synchronous) when there’s an active transaction.