I read a lot about GameCenter from various sources ... especially in the Apple documentation, as well as in some Apress books about using the multiplayer GameCenter game, but I cannot find a clear answer on whether I can trust callbacks like matchmakerViewController: didFindMatch or match: didReceiveData: fromPlayer (just to name a couple of examples) to always be in the main thread.
Sometimes they explicitly say in the Apple documentation that the call will always be in the main thread, but they are not consistent with the fact that they are clear for each function.
Apress books tend to be completely paranoid in flow, so they use dispatch_async to make sure they get into the main stream.
My question is simple ... Can I trust that unless Apple says otherwise, the calls will be in the mainstream or I need to be paranoid like Apress books.
(Please do not answer questions such as “just paranoid everywhere and don't worry about it”)
source
share