Base Worker¶
The BaseWorker provides the foundation for all background threads in PyAutomation, ensuring they can be gracefully stopped.
class
automation.workers.worker.BaseWorker()Base class for all worker threads.
It extends threading.Thread and provides a standardized mechanism for stopping the thread
using a threading.Event.
get_stop_event(self)Returns the stop event object.
Returns:
- threading.Event: The event used to signal the thread to stop.
stop(self)Signals the worker thread to stop execution.