Skip to content

Commit

Permalink
Complete NSOperation documentation, quick change
Browse files Browse the repository at this point in the history
  • Loading branch information
gcasa committed Nov 9, 2024
1 parent fe5efb6 commit be38c72
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Headers/Foundation/NSOperation.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,19 @@ GS_EXPORT_CLASS
}

// Managing the blocks in the Operation
/**
* Creates and returns an NSBlockOperationObject and adds the block.
*/
+ (instancetype) blockOperationWithBlock: (GSBlockOperationBlock)block;

/**
* Adds the execution block to the NSOperationBlock.
*/
- (void) addExecutionBlock: (GSBlockOperationBlock)block;

/**
* Returns the block added to the NSOperationBlock.
*/
- (NSArray *) executionBlocks;

@end
Expand Down

0 comments on commit be38c72

Please sign in to comment.