November 2013
Intermediate to advanced
576 pages
19h 3m
English
Operation queues (NSOperationQueue) are available to manage a set of tasks or operations (NSOperation). An operation queue can specify how many operations can run concurrently, can be suspended and restarted, and can cancel all pending operations. Operations can be a simple method invocation, a block, or a custom operation class. Operations can have dependencies established to make them run serially. Operations and operation queues are actually managed by Grand Central Dispatch, and are implemented with dispatch queues.
The sample app illustrates three approaches using an operation queue: concurrent operations, serial operations with dependencies, and custom operations to support cancellation.
Read now
Unlock full access