mafw.steering_gui.threading

Threading utilities made available to the steering GUI.

Author:

Bulgheroni Antonio (antonio.bulgheroni@ec.europa.eu)

Description:

Provide a shared Worker QObject for running operations off the GUI thread.

class mafw.steering_gui.threading.Worker(fn: Callable[[...], T], *args: Any, **kwargs: Any)[source]

Bases: QRunnable, Generic[T]

Run a callable in a thread pool while exposing progress, error, and completion signals.

connect(*, finished: Callable[[T], None] | None = None, error: Callable[[Exception], None] | None = None, progress: Callable[[int], None] | None = None) None[source]

Attach callbacks to the worker signals.

run() None[source]

Execute the callable and propagate its result or any exception.

Modules

workers

Threading helpers for future steering GUI background tasks.