GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Multithreads/main.m at master · skyjasmine/Multithreads Expand file tree/ Copy pathmain.mMore file actions 19 lines (16 loc) · 569 Bytes / Copy pathmain.mFile metadata and controls19 lines (16 loc) · 569 Bytes 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 /* 问题:封装Objective-C对象Executer和Task,Executer初始化时接受多个Task。 为Executer提供execute方法,异步地执行所有Task。 以及-OnFinish:(Block)anBlock方法,在所有Task结束之后执行这个block。 */ #import "Executer.h" int main(int argc, char * argv[]) { NSString * appDelegateClassName; @autoreleasepool { Executer *exe = [[Executer alloc]init]; [exe execute]; blk_t blk = ^{NSLog(@"在所有Task结束后执行该block");}; [exe OnFinish:blk]; } return 0; } |
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |