4 ms·
API calls cannot have deterministic progress calculated in advance due to various factors like current system resources available, load, amount of data stored a
by codegeek 3y ago
API calls cannot have deterministic progress calculated in advance due to various factors like current system resources available, load, amount of data stored and various other things that can impact the time it takes to finish an API call. So I don't see how you can get a progress percentage out of such call. Spinners are the only way as of now. It is not always like a File upload where you know the size of the file and the chunks uploaded to the server already.
- jacobn 3y agoWell, it will depend on the specifics of the API. Sure, there will be degenerate cases where there's no meaningful progress that could be reported, but we throw in the towel without even trying?