Tell me why I run a project with 50 threads, but there are always 6-7 active browser windows. It is clear that there are 50 threads, but much fewer windows are launched at a time, although this was not the case before.
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.