reload for each file to be compiled/recompiled, and we call invoke_callback which will invoke methods for any successfully compiled filereload is called via FileSystemWatcherinvoke_method is called from user code (eg, our app)reload launches a separate compilation task to avoid stalling the file watcher while compiling filesreload during an active compilation should cancel the current compilation and start a new compilationunload during an active compilation should cancel the current compilationsuccessful compilation, we execute a callback which is called in the compilation thread, outside of the file watcher threadunload or reload is triggered and we (the callback) have not yet finishedinvoke_callback will invoke the specified callback for all succesfully compiled scripts, and should not handle unload and reload events as we expect the methods being called to correctly handle the cancellation event of the passed cancellation token