RBCancellableBlockTask Class Reference
Inherits from | NSObject |
---|---|
Conforms to | RBCancellableTask |
Declared in | RBThreading.h |
taskBlock
The block to be executed.
@property (nonatomic, readonly, nonnull) dispatch_block_t taskBlock
Discussion
The block to be executed.
Declared In
RBThreading.h
cancelled
Whether the task has been cancelled.
@property (nonatomic, readonly) BOOL cancelled
Discussion
Whether the task has been cancelled.
Declared In
RBThreading.h
started
Whether the task has been started.
@property (nonatomic, readonly) BOOL started
Discussion
Whether the task has been started.
Declared In
RBThreading.h
finished
Whether the task has been completed.
@property (nonatomic, readonly) BOOL finished
Discussion
Whether the task has been completed.
Declared In
RBThreading.h
– initWithTaskBlock:
Initializes a new task with the given block.
- (nonnull instancetype)initWithTaskBlock:(nonnull dispatch_block_t)taskBlock
Parameters
taskBlock |
The block to execute. |
---|
Return Value
The initialized object.
Discussion
Initializes a new task with the given block.
Declared In
RBThreading.h