H4x0

Task

Jun 20th, 2013
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.14 KB | None | 0 0
  1. Task WriteTask = Task.Factory.StartNew(() =>
  2. {
  3.     //Do Work Here
  4. });
  5.  
  6. //Tell Code To Wait For
  7. //the task to complete.
  8. WriteTask.Wait();
Advertisement
Add Comment
Please, Sign In to add comment