Generic Class


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


class NSAsynchronousFetchRequest<ResultType> : NSPersistentStoreRequest where ResultType : NSFetchRequestResult


Initializing a Request

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

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.


Conforms To

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 to display data to the user.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software