I was having some trouble unit testing some grand central dispatch code with the built in Xcode unit testing framework, SenTestingKit. I managed to boil my problem done to t
Will you ever get out of house if you must wait for yourself to get out house first? You guessed right! No! :]
Basically if:
main_queue
)sync
ie in a serial way and want to execute on FooQueue. It will never happen for same reason that you will never get out of house!
It won't ever get dispatched because it has to wait for itself to get off the queue!