diff options
author | 2014-02-23 18:15:23 -0800 | |
---|---|---|
committer | 2014-02-23 18:15:23 -0800 | |
commit | 2198484458e887ec3c7c0e15497c81f52dba5619 (patch) | |
tree | 6e6a0b188c7ba8993a81b999d2dc94eb0eb74995 /src/objc/utils/MCOOperation.h | |
parent | 2b03e94aac54808afb2ad838c449f0e2d058849b (diff) |
Fixed #608: cancelled scheduled operations that are not run will not run in the future.
Diffstat (limited to 'src/objc/utils/MCOOperation.h')
-rw-r--r-- | src/objc/utils/MCOOperation.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/objc/utils/MCOOperation.h b/src/objc/utils/MCOOperation.h index 263d4a46..f46536c9 100644 --- a/src/objc/utils/MCOOperation.h +++ b/src/objc/utils/MCOOperation.h @@ -17,6 +17,9 @@ /** Returns whether the operation is cancelled.*/ @property (readonly) BOOL isCancelled; +/** Returns whether the operation should run even if it's cancelled.*/ +@property (nonatomic, assign) BOOL shouldRunWhenCancelled; + /** The queue this operation dispatches the callback on. Defaults to the main queue. This property should be used only if there's performance issue creating or calling the callback in the main thread. */ @@ -29,7 +32,6 @@ /** Cancel the operation.*/ - (void) cancel; - @end #endif |