@tet-vivi I open the BAS script only with 10 threads right now because of the low CPU/RAM. 10 threads are working for 7 minutes and then close the browser and sleep for 30 minutes.
i run five threads at once.
I want to run another function when these 5 operations are finished or when the error occurs, and then I need to run these 5 threads again.
for example, when one thread is successful, it will wait for the others to finish.