Change `isRunning` on manager from method to property

This commit is contained in:
DreamPiggy 2018-04-02 22:28:45 +08:00
parent c24c3d3477
commit c21381e83b
1 changed files with 5 additions and 5 deletions

View File

@ -134,6 +134,11 @@ SDWebImageManager.sharedManager.cacheKeyFilter = ^(NSURL * _Nullable url) {
*/ */
@property (nonatomic, copy, nullable) SDWebImageCacheSerializerBlock cacheSerializer; @property (nonatomic, copy, nullable) SDWebImageCacheSerializerBlock cacheSerializer;
/**
* Check one or more operations running
*/
@property (nonatomic, assign, readonly, getter=isRunning) BOOL running;
/** /**
* Returns global shared manager instance. * Returns global shared manager instance.
*/ */
@ -208,11 +213,6 @@ SDWebImageManager.sharedManager.cacheKeyFilter = ^(NSURL * _Nullable url) {
*/ */
- (void)cancelAll; - (void)cancelAll;
/**
* Check one or more operations running
*/
- (BOOL)isRunning;
/** /**
* Async check if image has already been cached * Async check if image has already been cached
* *