Overview

const int repetitions = 10000;
Task task = new Task(() =>
{
	for (var i = 0; i < repetitions; i++)
		Console.Write('-');
});
task.Start();
for (var i = 0; i < repetitions; i++)
	Console.Write('.');
	
task.Wait();
Task<string> task = Task.Factory.StartNew<string>(() => PiCalculator.Calculate(100));

Task Properties

ContinueWith()

TaskContinuationOptions