Answer the question
In order to leave comments, you need to log in
How can a Thread be stopped in python?
How can a Thread be stopped in python without using join?
Example:
from threading import Thread
class Test:
def __init__(self):
self.run=True
Thread(target=self.test).start()
def test(self):
#something
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