Task

Task<string> task = Task.Factory.StartNew(() => "The world is very fair and everything depend on myself!");
Console.WriteLine(task.Result);

 

Task<long> task = Task.Factory.StartNew(() =>672242376545678);
Console.WriteLine(task.Result);

posted @ 2016-08-17 23:07  FredGrit  阅读(149)  评论(0编辑  收藏  举报