Async.OC:Objective-C中的语法糖,用于Grand Central Dispatch中的异步调度

时间:2021-05-10 23:33:51
【文件属性】:
文件名称:Async.OC:Objective-C中的语法糖,用于Grand Central Dispatch中的异步调度
文件大小:34KB
文件格式:ZIP
更新时间:2021-05-10 23:33:51
Objective-C 异步OC 用Objective-C重写 。 要获得对iOS 7和OS X 10.9的支持,请查看 。 异步糖看起来像这样: Async.background(^{ NSLog ( @" A: This is run on the background " ); }).main(^{ NSLog ( @" B: This is run on the , after the previous block " ); }); 代替熟悉的GCD语法: dispatch_async (dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0 ), ^{ NSLog ( @" A: This is run on the background " ); dispatch_async ( dis
【文件预览】:
Async.OC-master
----README.md(2KB)
----AsyncOCExampleTests()
--------Info.plist(742B)
--------AsyncOCExampleTests.m(879B)
----Async.OC()
--------DPKAsync.h(792B)
--------DPKAsync.m(4KB)
----AsyncOCExample.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(17KB)
--------xcuserdata()
----.DS_Store(6KB)
----AsyncOCExample()
--------AppDelegate.h(276B)
--------ViewController.h(214B)
--------Base.lproj()
--------main.m(333B)
--------Images.xcassets()
--------Info.plist(1KB)
--------AppDelegate.m(4KB)
--------.DS_Store(6KB)
--------ViewController.m(294B)

网友评论