Skip to content

Instantly share code, notes, and snippets.

@amamdouh2k15
Created January 15, 2017 12:46
Show Gist options
  • Save amamdouh2k15/e9b7a275eae0e160296fdc788ec502d6 to your computer and use it in GitHub Desktop.
Save amamdouh2k15/e9b7a275eae0e160296fdc788ec502d6 to your computer and use it in GitHub Desktop.
Wpf Non Blocking UI Thread With Feedback
var task = Task.Factory.StartNew(() =>
{
//time consuming task
});
task.ContinueWith((t) =>
{
//TODO when task finishes
}, TaskContinuationOptions.ExecuteSynchronously);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment