Contents

discoverUserIdentitiesCompletionBlock

The closure to execute when the operation finishes.

Declaration

var discoverUserIdentitiesCompletionBlock: (((any Error)?) -> Void)? { get set }

Discussion

The closure doesn’t return a value and takes the following parameter:

  • An error if a problem occurs, or nil if CloudKit successfully fetches the user identities.

This closure executes only once, after all of the individual discovery closures finish. The closure executes serially with respect to the operation’s other closures. If you intend to use this closure to process results, update the property’s value before you execute the operation or submit it to a queue.

See Also

Processing the Results