Instance Method

perform​Block:​

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

Declaration

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

Parameters

block

The block to perform.

Discussion

You use this method to send messages to managed objects if the context was initialized using NSPrivate​Queue​Concurrency​Type or NSMain​Queue​Concurrency​Type.

This method encapsulates an autorelease pool and a call to process​Pending​Changes.

See Also

Related Symbols

- perform​Block​And​Wait:​​

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