I am new to Dispatch queue, now am trying to call background operations through this dispatch queue.
Here I have a doubt, please help me in this. In the below example,
whatQueue:- Should it be mainQueue, queueA or shall I create a new Queue?
dispatch_queue_t queueA = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0);
dispatch_async(queueA, ^{
NSMutableArray * items = listofItems;
for(NSString * str in items)
{
//Run a sync block to send str to server
dispatch_sync(***whatQueue***, ^{
});
}
});
Thanks, Phani