App.threading

App.threading(func, args=[], kwargs={}, on_progress=None, on_result=None, include_self=False)[source]

Execute a multi-threaded function.

Parameters:
  • func (function) – The function to be executed.

  • args (list, optional) – The arguments to be passed to the function.

  • kwargs (dict, optional) – The keyword arguments to be passed to the function.

  • on_progress (function, optional) – A function to be called on progress event.

  • on_result (function, optional) – A function to be called on result event.

  • include_self (bool, optional) – Include the thread worker instance in the arguments, for sending out progress singals.

Returns:

None