UpdateRequest

@available(iOS 10, OSX 10.12, watchOS 3.0, tvOS 10, *)
public final class UpdateRequest<T> where T : NSManagedObject

Update Request

Create and perform update requests.

  • Update request asynchronously.

    Performs the update request asynchronously, using the NSBatchUpdateRequest.

    • NSBatchUpdateRequest:

    A request to Core Data to do a batch update of data in a persistent store without loading any data into memory.

    Declaration

    Swift

    public func updateBatchAsync(_ completion: @escaping ((Bool) -> Void))

    Parameters

    completion

    The block to execute after the request finishes. The block takes one parameter Bool, true if the request is successful or false.