Skip to content

Commit

Permalink
Mark symbols to be deprecated
Browse files Browse the repository at this point in the history
Use NSOperation instead.

PiperOrigin-RevId: 458514748
  • Loading branch information
CGRect authored and material-automation committed Jul 1, 2022
1 parent f2d6a16 commit d0fbad6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/core/src/NIOperations+Subclassing.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
//
#import "NIOperations.h"

API_DEPRECATED_BEGIN("Use NSOperation instead.", ios(12, API_TO_BE_DEPRECATED))

@interface NIOperation()
@property (strong) NSError* lastError;
@end

API_DEPRECATED_END
4 changes: 4 additions & 0 deletions src/core/src/NIOperations.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@

#import "NIPreprocessorMacros.h" /* for weak */

API_DEPRECATED_BEGIN("Use NSOperation instead.", ios(12, API_TO_BE_DEPRECATED))

@class NIOperation;

typedef void (^NIOperationBlock)(NIOperation* operation);
Expand Down Expand Up @@ -207,3 +209,5 @@ typedef void (^NIOperationDidFailBlock)(NIOperation* operation, NSError* error);
*
* @fn NIOperation::willFinish
*/

API_DEPRECATED_END

0 comments on commit d0fbad6

Please sign in to comment.