Inherits from NSObject
Declared in MCOOperation.h
MCOOperation.mm

Properties

callbackDispatchQueue

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.

@property (nonatomic, retain) dispatch_queue_t callbackDispatchQueue

Declared In

MCOOperation.h

isCancelled

Returns whether the operation is cancelled.

@property (readonly) BOOL isCancelled

Declared In

MCOOperation.h

shouldRunWhenCancelled

Returns whether the operation should run even if it’s cancelled.

@property (nonatomic, assign) BOOL shouldRunWhenCancelled

Declared In

MCOOperation.h

Instance Methods

cancel

Cancel the operation.

- (void)cancel

Declared In

MCOOperation.h

operationCompleted

This methods is called on the main thread when the asynchronous operation is finished. Needs to be overriden by subclasses.

- (void)operationCompleted

Declared In

MCOOperation.h