eww.stoppable_thread

threading.Thread class that exposes a stop API. Subclasses of this must check for .stop_requested regularly.

class eww.stoppable_thread.StoppableThread[source]

Bases: threading.Thread

Thread class that adds a stop() method. Subclasses must check for the .stop_requested event regularly.

__init__()[source]

Init.

stop()[source]

Sets the stop_requested flag.