mark tanaka - 2019-12-02

I'm new to python and NPP and am writing a python script that updates an open document (first to last row) using scintilla. This process can take a while depending on the document size, so I was wondering if there is a way to have the script hold control until it is complete. I don't want the user to be able to modify the document as it's being updated. I was looking at editor.callbackSync, but I don't know if it will work, nor how to implement it in my code. Thanks