I'm taking over ownership of a client app written by one of the client's employees who was new to iOS development (and has since left the company)
I'm trying to get a handle on/improve it's use of concurrency. It was creating a bunch of different GCD timers with different delays, and timing was a mess.
I'm probably going to convert it to use a GCD serial queue, since I need the tasks to be run in sequential order (but not on the main thread.) I'd like to monitor how deep the pending tasks get on the queue. NSOperationQueues have a facility for looking at the number of pending tasks, but I don't see similar option for GCD serial queues. Is there such a facility?
I guess I could build an NSOperationQueue, and make each operation depend on the previous operation, thus creating a serial operation queue, but that's a lot of work simply to diagnose the number of tasks that are in my queue at any one time.