RhinoAppInvokeOnUiThread Method |
Execute a function on the main UI thread.
Namespace:
Rhino
Assembly:
RhinoCommon (in RhinoCommon.dll)
Since: 6.0
Syntaxpublic static void InvokeOnUiThread(
Delegate method,
params Object[] args
)
Public Shared Sub InvokeOnUiThread (
method As Delegate,
ParamArray args As Object()
)
Parameters
- method
- Type: SystemDelegate
function to execute - args
- Type: SystemObject
parameters to pass to the function
Remarks
When called from the UI thread the function runs immediately. From any other thread it is
posted to the UI thread and this returns without waiting for it to run.
See Also