DispatchQueueBlockRunner
Dispatches a block asynchronously on the given dispatch_queue_t queue.
Please use the -initWithDispatchQueue: initializer, because you must specify the queue.
Methods
- - (instancetype) initWithDispatchQueue:(dispatch_queue_t)queue
Designated initializer. Initializes the object with the given
dispatch queuewhich will run the blocks. Thequeuemust not benil.Parameters:
queue
- + (instancetype) mainQueueRunner
Convenience method that returns a block runner with the main dispatch queue.