ThreadTask#

ignis.utils.Utils.ThreadTask(target: Callable, callback: Callable)#

Execute a function in another thread and call a callback when it's finished. The output from the function is passed to the callback.

Signals:
  • "finished" (Any): Emitted when the function has finished. Passes the output from the function as an argument.

Parameters:
  • target (Callable) -- The function to execute in another thread.

  • callback (callabke) -- The function to call when target has finished.