I want to send a request to a server and process the returned value:
private static string Send(int id) { Task responseTask =
A clean example that answers the Title
string output = "Error"; Task task = Task.Factory.StartNew(() => { System.Threading.Thread.Sleep(2000); output = "Complete"; }); task.Wait(); Console.WriteLine(output);