add .gitignore
This commit is contained in:
22
msext/QiniuSDK/Common/QNAsyncRun.m
Executable file
22
msext/QiniuSDK/Common/QNAsyncRun.m
Executable file
@@ -0,0 +1,22 @@
|
||||
//
|
||||
// QNAsyncRun.m
|
||||
// QiniuSDK
|
||||
//
|
||||
// Created by bailong on 14/10/17.
|
||||
// Copyright (c) 2014年 Qiniu. All rights reserved.
|
||||
//
|
||||
|
||||
#import "QNAsyncRun.h"
|
||||
#import <Foundation/Foundation.h>
|
||||
|
||||
void QNAsyncRun(QNRun run) {
|
||||
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^(void) {
|
||||
run();
|
||||
});
|
||||
}
|
||||
|
||||
void QNAsyncRunInMain(QNRun run) {
|
||||
dispatch_async(dispatch_get_main_queue(), ^(void) {
|
||||
run();
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user