execute(_:)
Executes a save request and returns success or failure.
Declaration
func execute(_ saveRequest: CNSaveRequest) throwsParameters
- saveRequest:
The save request to execute.
Return Value
true if the save request executes successfully; otherwise, false.
Discussion
It is recommended that you do not access objects in the save request from other threads when it is in the process of being executed, because it may modify the contacts in the process. A save request only applies the changes to the objects. If there are overlapping changes with multiple or concurrent CNSaveRequest then the last saved change wins.