I'm using forearch that pointed to a file.
After looping exactly 10 records, the script threw success message for the thread, hence breaking the loop.
I've tried to set success numbers to -1 and 10000+ and have no solution.
What's missing?
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.