From c21381e83be2e332f48e160800e46aff17c32b05 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Mon, 2 Apr 2018 22:28:45 +0800 Subject: [PATCH] Change `isRunning` on manager from method to property --- SDWebImage/SDWebImageManager.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/SDWebImage/SDWebImageManager.h b/SDWebImage/SDWebImageManager.h index 07ad4f23..c78779bd 100644 --- a/SDWebImage/SDWebImageManager.h +++ b/SDWebImage/SDWebImageManager.h @@ -134,6 +134,11 @@ SDWebImageManager.sharedManager.cacheKeyFilter = ^(NSURL * _Nullable url) { */ @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. */ @@ -208,11 +213,6 @@ SDWebImageManager.sharedManager.cacheKeyFilter = ^(NSURL * _Nullable url) { */ - (void)cancelAll; -/** - * Check one or more operations running - */ -- (BOOL)isRunning; - /** * Async check if image has already been cached *