I'm dealing with a JavaScript loop that processes data from an Excel file. The loop loops through the results and retrieves a list of PMIDs. If the PMIDList has more than 200 items, it needs to be split into segments of 200 for processing due to restrictions on the web service. This process works well, except when the PMIDList exceeds 200 items.
Due to restrictions on the web service where only 200 items can be processed at a time, I need to find a way to create an internal loop that extracts the first 200 items before looping back to handle the rest of the items. It would also be beneficial to perform this task synchronously to adhere to the service's limitation of three requests per second. Additionally, as Vue is being used in this project, managing wait times is another important consideration.