Expected behavior
In our add-in, I set a local queue to let Office-JS API will called one by one, and set the timeout to 30s. I expected if every Office-JS api have a timeout setting to release the no response API(which are timeout in 30s or other time) from queue.
Current behavior
If API have no response in 30s, my add-in will start the next API call. And I have a loop function which will send about 8 request in 300ms, and each loop will wait the previous loop is finished. So when some API call timeout in 30s, and the Office queue is full filled with 50 API calls. This error will come out:
{"name":"API Call Failed",\"message":"Wait until the previous call completes.","code":5100}