Answer the question
In order to leave comments, you need to log in
How to purposefully kill a thread?
Good afternoon.
I have a VK bot that accepts a link from the user and then starts clicking on it and other links within the site, of course it does it in threads, maybe a separate user = a separate thread, because you need to do it for all users at the same time
There is a "stop" button in the bot which should end the thread
Here is the start of the thread
race_thread = threading.Thread(target=AutoRacer().StartWork(auth_link,), name='thread: {}'.format(sender))
race_thread.start()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question