aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/objc/utils/MCOOperation.h
diff options
context:
space:
mode:
authorGravatar CodaFi <devteam.codafi@gmail.com>2013-10-25 16:52:06 -0600
committerGravatar CodaFi <devteam.codafi@gmail.com>2013-10-25 16:52:06 -0600
commitc8f7c51fde01bf067ec18c3907508b923e61f200 (patch)
tree24c5e66dd6625845e5a8de1de05231cbcdf3ba92 /src/objc/utils/MCOOperation.h
parentaa26310060dc7db1bdaa9dbaceda1293ddd94346 (diff)
Cleanup and documentation
Diffstat (limited to 'src/objc/utils/MCOOperation.h')
-rw-r--r--src/objc/utils/MCOOperation.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/objc/utils/MCOOperation.h b/src/objc/utils/MCOOperation.h
index 3f6b42c5..08e74d84 100644
--- a/src/objc/utils/MCOOperation.h
+++ b/src/objc/utils/MCOOperation.h
@@ -14,15 +14,20 @@
@interface MCOOperation : NSObject
+/** Returns whether the operation is cancelled.*/
@property (readonly) BOOL isCancelled;
-// This methods is called on the main thread when the asynchronous operation is finished.
-// Needs to be overriden by subclasses.
+/** The queue this operation dispatches the callback on. Defaults to the main queue.*/
+@property (nonatomic, assign) dispatch_queue_t callbackDispatchQueue;
+
+/** This methods is called on the main thread when the asynchronous operation is finished.
+ Needs to be overriden by subclasses.*/
- (void) operationCompleted;
-// Cancel the operation.
+/** Cancel the operation.*/
- (void) cancel;
+
@end
#endif