objective c - Why can't we use dispatch_sync when doing asynchronous network testing for iOS? -


i understand why dispatch_sync issue when dispatched main thread when dealing ui handling, why issue when running simple xctests? why can't main thread blocked during these tests? why use semaphores rather synchronously dispatching these network events testing?

thank you.


Comments

Popular posts from this blog

c# - Validate object ID from GET to POST -

node.js - Custom Model Validator SailsJS -

php - Find a regex to take part of Email -