Invokes (calls) the given Python function on a different thread. This means that calls to invokeAsynchronous will return immediately, and then the given function will start executing asynchronously on a different thread. This is useful for long-running data intensive functions, where running them synchronously (in the GUI thread) would make the GUI non-responsive for an unacceptable amount of time.
|Client permissions restrictions|
system.util. invokeAsynchronous( function, [args], [kwargs], [description] )
Callable function - A Python function object that will be invoked in a newly created thread.
List [Any] args - A list or tuple of Python objects that will be provided to the called function as arguments. Equivalent to the * operator. [optional]
Dictionary[String, Any] kwargs - A dictionary of keyword argument names to Python object values that will be provided to the called function as keyword arguments. Equivalent to the ** operator. [optional]
String description - A description to use for the asynchronous thread. Will be displayed on the current scope's diagnostic view for scripts. For Vision and the Designer, this would be the "Scripts" tab of the Diagnostics popup. For Perspective and the Gateway scope, this would be the Gateway's Running Scripts status page. [optional]
Thread - The executing Thread.
Gateway, Vision Client, Perspective Session
system util invokeAsynchronous, util.invokeAsynchronous