Javascript: How to check if async operation is still pending / In progress?
问题 I would like to know if it is somehow possible to check if an asynchronous operation in Javascript is still pending.. Because I am doing a database request on calling a specific URL... While the db call is still in progress, I want to stop any other incoming db-calls (which means, stop any further calls to that URL in case the db-request is still pending). Is that somehow possible? Because the database call takes up to minutes, and I don't want to launch another database-call while the first