If I have a background thread doing some network stuff, and some of the background methods make ‘performSelectorOnMainThread’ calls, will/can these calls interrupt execution of the current code block (which is being executed on the main thread)?
Share
No, they will and can not. The
performSelectorgroup of methods schedule actions on the run loop. Only after your current code block returns to the run loop, these actions will be performed. (Assuming with “the current code block” you mean your code running on the main thread)