I want to get a line of word from my file, type it and delete it at the same time, but it's not deleting until the thread finished, and when I'm doing it in a multi thread its getting the same word at the same time. How
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.