Mark isCancelled block as noescape to improve the Swift import

This commit is contained in:
Adlai Holler
2016-11-27 10:31:35 -08:00
parent aefff563bd
commit b689a59b45
2 changed files with 6 additions and 6 deletions

View File

@@ -195,7 +195,7 @@ NS_ASSUME_NONNULL_BEGIN
* @note Called on the display queue and/or main queue (MUST BE THREAD SAFE)
*/
+ (void)drawRect:(CGRect)bounds withParameters:(nullable id <NSObject>)parameters
isCancelled:(asdisplaynode_iscancelled_block_t)isCancelledBlock
isCancelled:(__attribute((noescape)) asdisplaynode_iscancelled_block_t)isCancelledBlock
isRasterizing:(BOOL)isRasterizing;
/**
@@ -212,7 +212,7 @@ NS_ASSUME_NONNULL_BEGIN
* @note Called on the display queue and/or main queue (MUST BE THREAD SAFE)
*/
+ (nullable UIImage *)displayWithParameters:(nullable id<NSObject>)parameters
isCancelled:(asdisplaynode_iscancelled_block_t)isCancelledBlock;
isCancelled:(__attribute((noescape)) asdisplaynode_iscancelled_block_t)isCancelledBlock;
/**
* @abstract Delegate override for drawParameters