multiple threads of api request? merge getAllRecords?

multiple threads of api request? merge getAllRecords?

in widget development we use this JS  to get all records of report:
ZOHO.CREATOR.API.getAllRecords(configg).then(function(response)
this is a "thenable" function that runs when a response is resolved.
if i have more than 200 records i would like to join them into one array.

how can i write a for loop like this? (psudoCode)
bigList=[];
for (i=1 ; i<report_size / page_size; i++){
      list = zoho.getAllRecords ;
      bigList = bigList.concat(list);
}

do I need to merge the different request threads in some way?