c#4.0 Task.Factory.StartNew 用法

时间:2018-11-15 13:49:53   收藏:0   阅读:1724

var t1 = Task.Factory.StartNew<string>(() =>
{
return “1111111”;
});
//t1.Wait();
t1.ContinueWith(i =>
{
this.Invoke(new EventHandler(delegate { ;}));
});

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!