4
This commit is contained in:
21
Pods/SDWebImage/SDWebImage/Private/SDAsyncBlockOperation.h
generated
Normal file
21
Pods/SDWebImage/SDWebImage/Private/SDAsyncBlockOperation.h
generated
Normal file
@@ -0,0 +1,21 @@
|
||||
/*
|
||||
* 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 "SDWebImageCompat.h"
|
||||
|
||||
@class SDAsyncBlockOperation;
|
||||
typedef void (^SDAsyncBlock)(SDAsyncBlockOperation * __nonnull asyncOperation);
|
||||
|
||||
/// A async block operation, success after you call `completer` (not like `NSBlockOperation` which is for sync block, success on return)
|
||||
@interface SDAsyncBlockOperation : NSOperation
|
||||
|
||||
- (nonnull instancetype)initWithBlock:(nonnull SDAsyncBlock)block;
|
||||
+ (nonnull instancetype)blockOperationWithBlock:(nonnull SDAsyncBlock)block;
|
||||
- (void)complete;
|
||||
|
||||
@end
|
||||
Reference in New Issue
Block a user