Skip to content

Instantly share code, notes, and snippets.

@Shazwazza
Created May 9, 2014 01:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Shazwazza/0c6e0ef2585df8391a91 to your computer and use it in GitHub Desktop.
Save Shazwazza/0c6e0ef2585df8391a91 to your computer and use it in GitHub Desktop.
Returns a synchronous Task instance
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