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

◆ begin_invoke() [1/2]

virtual xtd::async_result xtd::isynchronize_invoke::begin_invoke ( delegate< void()>  method)
pure virtual

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

Parameters
methodA xtd::delegate to a method without paramter.
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.