Issue with Task

  • Thread starter Thread starter SZohar
  • Start date Start date
S

SZohar

Guest
Hi,

I am using the following code with Form application under an async method.

var a = Task.Run(async () => await Get_iSeeLoc_Real_Locations()).Result;

I would expect the UI not to be in a deadlock during this line. The Get_iSeeLoc_Real_Locations() is an async method as well.

I can also see in the thread window that not new thread was invoked.

Your help will be greatly appreciated.

Thanks
Sharon


Continue reading...
 

Similar threads

S
Replies
0
Views
51
SZohar
S
N
Replies
0
Views
104
neonash
N
H
Replies
0
Views
115
Heiko65456465
H
Back
Top