Created
May 9, 2014 01:19
-
-
Save Shazwazza/0c6e0ef2585df8391a91 to your computer and use it in GitHub Desktop.
Returns a synchronous Task instance
This file contains 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 = new Task(() => | |
{ | |
//do stuff; | |
}); | |
task.RunSynchronously(); | |
return task; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment