If I use a performSelectorOnMainThread call inside a detached thread, when does the main thread execute the request? Does it do so immediately after it finishes the current main thread operation, or is there some other type of hierarchy that determines when the performSelectorOnMainThread call executes?
If I use a performSelectorOnMainThread call inside a detached thread, when does the main
Share
It executes on the main thread on the next iteration of the main thread’s run loop.
Quoting Apple’s documentation: