Created
January 15, 2017 12:46
-
-
Save amamdouh2k15/e9b7a275eae0e160296fdc788ec502d6 to your computer and use it in GitHub Desktop.
Wpf Non Blocking UI Thread With Feedback
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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