endBatch(withClientState:completionHandler:)
Ends a batch of index updates and stores the specified state information.
Declaration
func endBatch(withClientState clientState: Data, completionHandler: (@Sendable ((any Error)?) -> Void)? = nil)func endBatch(withClientState clientState: Data) async throwsParameters
- clientState:
Up to 250 bytes of information that can help you recover from a crash and resume indexing.
- completionHandler:
The block that’s called after the client state has been stored.
The block receives the following parameter:
- error
If an error occurred, this parameter holds an error object that explains the error. Otherwise, the value of this parameter is
nil.