BU_SDAsyncBlockOperation.h 599 B

1234567891011121314151617181920
  1. /*
  2. * This file is part of the SDWebImage package.
  3. * (c) Olivier Poitrey <rs@dailymotion.com>
  4. *
  5. * For the full copyright and license information, please view the LICENSE
  6. * file that was distributed with this source code.
  7. */
  8. #import "BU_SDWebImageCompat.h"
  9. @class BU_SDAsyncBlockOperation;
  10. typedef void (^SDAsyncBlock)(BU_SDAsyncBlockOperation * __nonnull asyncOperation);
  11. @interface BU_SDAsyncBlockOperation : NSOperation
  12. - (nonnull instancetype)initWithBlock:(nonnull SDAsyncBlock)block;
  13. + (nonnull instancetype)blockOperationWithBlock:(nonnull SDAsyncBlock)block;
  14. - (void)complete;
  15. @end