iblrig.gui.tools.Worker
- class iblrig.gui.tools.Worker[source]
A generic worker class for executing functions concurrently in a separate thread.
This class is designed to run functions concurrently in a separate thread and emit signals to communicate the results or errors back to the main thread.
Adapted from: https://www.pythonguis.com/tutorials/multithreading-pyqt-applications-qthreadpool/
- fn
The function to be executed concurrently.
- Type:
Callable
- signals
An instance of WorkerSignals used to emit signals.
- Type:
- run() None [source]
The main entry point for running the worker. Executes the provided function and emits signals accordingly.
- Return type:
None