Which thread is a BeginInvoke callback of an asynchronous representative?
UI Thread or Thread Pool Thread
For Example
Private Zero Button 1_Click (Object Sender, EventErgus E) {Fx & lt; String & gt; Func1 = loading column; Func1.businesswok (isdon, throw 1); } String loading () {thread. Sleep (10000); // Simulated a long running X = thread. Present. Return "str_100000"; } String ISDON (IASINCRSULT A) {var LoadingDetterName = (Funk & lt; String & gt;) AACINCKET; String RR = LoadingDataTran.indInvoc (A); Textbox1.Text = rr; }
You are calling BeginInvoke
The delegate is , so it will be a pool thread if you are called BeganInvoke
on a control , then this UI will be threaded.
It is unfortunate that BeginInvoke
means almost the exact opposite in these two scenarios.
Comments
Post a Comment