QNAsyncRun.h 444 B

1234567891011121314151617181920
  1. //
  2. // QNAsyncRun.h
  3. // QiniuSDK
  4. //
  5. // Created by bailong on 14/10/17.
  6. // Copyright (c) 2014年 Qiniu. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #define kQNBackgroundQueue dispatch_get_global_queue(0, 0)
  10. #define kQNMainQueue dispatch_get_main_queue()
  11. typedef void (^QNRun)(void);
  12. void QNAsyncRun(QNRun run);
  13. void QNAsyncRunInMain(QNRun run);
  14. void QNAsyncRunAfter(NSTimeInterval time, dispatch_queue_t queue, QNRun run);