My bot starts with 50 threads, is there a better way to control the running threads, maybe 20-25 threads run at the same time?
Now I control this with sleep function, 25 threads working for 30 minutes and then sleep for 40 minutes. And when those threads sleeps I run the other 25 threads.
@ensdmrlq I think this is the interal api of outlook, maybe they have docs, otherwise you can try searching google, otherwise you will need to research yourself and try more
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.
Yeah you could buy multiple keys, then save them as resource list.
Then you can use resource variable as a key, which will result in
using different key for each new thread.