This is an advanced scripting function. 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.
This scripting function has no Client Permission restrictions.
system.util.invokeAsynchronous(function, [args], [kwargs], [description])
PyObject function - A Python function object that will get invoked with no arguments in a separate thread.
Dictionary 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]. Added in 8.0.15.
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]. Added in 8.0.15.
Thread - The executing Thread.
Gateway, Vision Client, Perspective Session
system util invokeAsynchronous, util.invokeAsynchronous