I\'ve been looking for some concrete scenarios for when NSOperation on the iPhone is an ideal tool to use in an application. To my understanding, this is a wrap
NSOperation
A sample that you can try using Swift
let operation : NSOperation = NSOperation() operation.completionBlock = { println("Completed") } let operationQueue = NSOperationQueue.mainQueue() operationQueue.addOperation(operation)