Generic Class

NSAsynchronousFetchRequest

A fetch request that retrieves results asynchronously and supports progress notification.

Topics

Initializing a Request

init(fetchRequest: NSFetchRequest<ResultType>, completionBlock: ((NSAsynchronousFetchResult<ResultType>) -> Void)? = nil)

Initializes a new asynchronous fetch request configured with the provided fetch request and completion block.

Preparing a Request

var completionBlock: NSPersistentStoreAsynchronousFetchResultCompletionBlock?

The block that is executed when the fetch request has completed.

var estimatedResultCount: Int

A configuration parameter that assists Core Data with scheduling the asynchronous fetch request.

var fetchRequest: NSFetchRequest<ResultType>

The underlying fetch request that is executed asynchronously.

Relationships

Generic Constraints

  • ResultType : NSFetchRequestResult
    

See Also

Fetch Requests

class NSFetchRequest

A description of search criteria used to retrieve data from a persistent store.

class NSAsynchronousFetchResult

A fetch result object that encompasses the response from an executed asynchronous fetch request.

class NSFetchedResultsController

A controller that you use to manage the results of a Core Data fetch request and display data to the user.