I'm writing a chatbot for the Twitch platform. Everything is over, but while 10 threads are running, the messages are going at the same time. How can I set the time between two threads. So, for example, Thread 2 needs to send the message 15sec after Thread 1 sends the message.
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.
If I am running a script and one thread fails, the data used for it will disappear from the source and I cannot see which one has to be reused.
There is no way to know which data was taken, 'cause the thread had deleted all things used before. But u could log data used before the thread will be crashed.