dispatch_time_t timer = dispatch_time(DISPATCH_TIME_NOW, 7.0 * NSEC_PER_SEC);
dispatch_after(timer, dispatch_get_main_queue(), ^(void){
NSLog(@"GCD-----%@",[NSThread currentThread]);
});
dispatch_time_t timer = dispatch_time(DISPATCH_TIME_NOW, 7.0 * NSEC_PER_SEC);
dispatch_after(timer, dispatch_get_main_queue(), ^(void){
NSLog(@"GCD-----%@",[NSThread currentThread]);
});
本文标题:一次性GCD定时器
本文链接:https://www.haomeiwen.com/subject/smbtertx.html
网友评论