-
Notifications
You must be signed in to change notification settings - Fork 77
Open
Description
Hi,
I would like to know in detail what is the use of the following function. Anybody could you please explain in detail because I am facing timeout issue while try to connecting with wifi network.
[self performSelector:@selector(endTime) withObject:nil afterDelay:2];
is it necessary to call above function and what will be the effect if we would not use this function.
Please explain in detail.
Thanks in advance.
- (void)go {
if ([NSThread isMainThread]) {
[self.simplePing start];
//[self performSelector:@selector(endTime) withObject:nil afterDelay:2]; // This timeout is what retains the ping helper
} else {
dispatch_sync(dispatch_get_main_queue(), ^{
NSLog(@"Moving ping to main thread");
[self.simplePing start];
// [self performSelector:@selector(endTime) withObject:nil afterDelay:2];
});
}
}
Metadata
Metadata
Assignees
Labels
No labels