diff options
Diffstat (limited to 'src/objc/utils/MCOOperation.h')
-rw-r--r-- | src/objc/utils/MCOOperation.h | 11 |
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 |