Quantcast
Channel: Caliburn.Micro: Xaml Made Easy
Viewing all articles
Browse latest Browse all 1760

Commented Unassigned: OnUIThreadAsync(action).Wait() causes an infinite wait [335]

$
0
0
After the update to version 1.5.2 my WPF 4.0 application is no longer closed.
See the simple example in the attachment. Example works fine with CaliburnMicro 1.4 and has infinite wait with 1.5.2

Comments: I'm not sure that this behaviour is correct. We know that task is canceled but anyway execute wait for it and receive "A task was canceled." exception. As for me, it should be something like this : Task task = OnUIThreadAsync(action); if (!task.IsCanceled) { task.Wait(); }

Viewing all articles
Browse latest Browse all 1760

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>