xtd 0.2.0
Loading...
Searching...
No Matches

◆ begin_invoke() [2/2]

virtual xtd::async_result xtd::isynchronize_invoke::begin_invoke ( delegate< void(std::vector< std::any >)>  value,
const std::vector< std::any > &  args 
)
pure virtual

Asynchronously executes the delegate on the thread that created this object.

Parameters
methodA xtd::delegate to a method that takes parameters of the same number and type that are contained in args.
argsAn array of type Object to pass as arguments to the given method. This can be empty if no arguments are needed.
Returns
An xtd::iasync_result interface that represents the asynchronous operation started by calling this method.
Remarks
The method delegate is executed on the thread that created the object, instead of the thread on which xtd::isynchronize_invoke::begin_invoke was called.
The delegate is called asynchronously, and this method returns immediately. You can call this method from any thread. If you need the return value from a process started with this method, call xtd::isynchronize_invoke::end_invoke to get the value.

Implemented in xtd::forms::control, and xtd::forms::control.