In the first request I'm trying fetch direct child accounts of an Id. In the completion block of 1st request I'm trying to fetch grand child accounts . dataRows is having data for section headers ( Which are direct child names). dataOfGrandChilds is dictionary that is holding section number as key and corresponding grandChilds array as its value.

When I put the break points at:

line number 10.SFRestAPI.sharedInstance().sendRESTRequest(requestForGrandChilds,

line number 23.counter += 1

the data in dataOfGrandChilds dictionary is properly setting and when remove the break points and execute the data in dataOfGrandschilds is setting inappropriately(i.e like for some other key,some other values is setting)