Hello, when the program gives an error anywhere, it closes by saying "fail". I also want to write a script if it fails. It is not clear where it will give the error, how do I do this? for example I want to run write file when it gives an error
Each asynchronous function started, starts in separate thread.
So in that example you will have 2 threads since 2 asynchronous functions
will be started, each with its own (different) script.