Currently, there is no possibility to temporarily stop editing in MediaWiki:Gadget-libAPI.js, and even if an interactive user input dialog is open, the editing continues in the background. As a libAPI user, I would like to get a ability to pause editing through public interface.
Implementation
Create a member functions startEditing() / stopEditing() which would start and stop executing edits from apiRequestQueue. Functions should be expoised to external use through mw.libs.commons.api interface similarly than abortPendingRequests()
Example:
mw.libs.commons.api.abortPendingRequests()
Other info
- In MediaWiki:Gadget-libAPI.js the main editing loop is in always() ( line 313 ) which will pull edits from apiRequestQueue and execute the edits.
- In addition there maybe ongoing edits on recallme() calls which least in theory could be also stopped, but in this case we let them pass throug and do not try to stop them.

