class Thread(*args, **kwargs)[source]

Bases: threading.Thread

This class represents a thread that can be terminated

raise_exc(exctype)[source]

raises the given exception type in the context of this thread

terminate()[source]

raises SystemExit in the context of the given thread, which should cause the thread to exit silently (unless caught)