GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Multithreads/main.m at master · skyjasmine/Multithreads

Expand file tree

/

main.m

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
19 lines (16 loc) · 569 Bytes
/

main.m

Copy path

File metadata and controls

19 lines (16 loc) · 569 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
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.