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
Post a Comment