Instance Method


Asynchronously performs a given block on the context’s queue.


- (void)performBlock:(void (^)(void))block;



The block to perform.


You use this method to send messages to managed objects if the context was initialized using NSPrivateQueueConcurrencyType or NSMainQueueConcurrencyType.

This method encapsulates an autorelease pool and a call to processPendingChanges.

See Also

Performing Block Operations

- performBlockAndWait:

Synchronously performs a given block on the context’s queue.

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