Is it also possible (via workaround) to create classes in BAS (as in standard programming languages) and use instances of them in the main and other functions of BAS scripts?
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.