BeginInvoke method or DelphiVCL.Application.BeginInvoke is used to perform an asynchronous call to the method specified by either AProc or AFunc.
The AContext parameter specifies the context where the method executes in. This context corresponds to the main thread. In case of a Tcontrol descendant, it executes in the context of the thread on which the closest window handle was created.
BeginInvoke returns the results of the asynchronous execution in an interface IAsyncResult used as a return type.
Let’s browse all the properties, methods, and built-in properties of the DelphiVCL.Application.BeginInvoke using dir() command:
1 2 3 |
import DelphiVCL dir(DelphiVCL.Application.BeginInvoke) |
See the responses in our Windows command prompt:
You can also read short information about the DelphiVCL.Application.BeginInvoke using the print() command:
1 2 |
print(DelphiVCL.Application.BeginInvoke) print(DelphiVCL.Application.BeginInvoke.__doc__) |
See the responses in our Windows command prompt:
Check out DelphiVCL which easily allows you to build GUIs for Windows using Python.