ThreadTask#

class ignis.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.

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

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

finished(*args)#
  • Signal

Parameters:

output (Any) -- The output from the function.

run() None#

Run this task.

Return type:

None