mirror of
https://github.com/SDWebImage/SDWebImage.git
synced 2026-04-07 19:27:40 +00:00
43ec4726e1
This is used for user who call SDWebImage outside from main queue and need precise queue control, such as avoid chain queue blocking (like AVKit lazy load)
33 lines
760 B
Objective-C
33 lines
760 B
Objective-C
/*
|
|
* This file is part of the SDWebImage package.
|
|
* (c) Olivier Poitrey <rs@dailymotion.com>
|
|
*
|
|
* For the full copyright and license information, please view the LICENSE
|
|
* file that was distributed with this source code.
|
|
*/
|
|
|
|
|
|
#import "SDWebImageDefine.h"
|
|
|
|
NS_ASSUME_NONNULL_BEGIN
|
|
|
|
@interface SDCallbackQueue : NSObject
|
|
|
|
@property (nonnull, class, readonly) SDCallbackQueue *mainQueue;
|
|
|
|
@property (nonnull, class, readonly) SDCallbackQueue *callerQueue;
|
|
|
|
@property (nonnull, class, readonly) SDCallbackQueue *globalQueue;
|
|
|
|
+ (SDCallbackQueue *)dispatchQueue:(dispatch_queue_t)queue;
|
|
|
|
- (void)sync:(SDWebImageNoParamsBlock)block;
|
|
|
|
- (void)async:(SDWebImageNoParamsBlock)block;
|
|
|
|
- (void)asyncSafe:(SDWebImageNoParamsBlock)block;
|
|
|
|
@end
|
|
|
|
NS_ASSUME_NONNULL_END
|