【发布时间】:2017-07-28 02:26:39
【问题描述】:
static void Main(string[] args)
{ print(); }
static async void print()
{
try
{
await Task.Factory.StartNew(() =>
{
Thread.Sleep(3000);
Console.WriteLine("3");
Debug.Write("3");
});
}
catch (Exception)
{ }
Console.Read();
}
控制台飞溅没有任何错误发生!
【问题讨论】:
标签: .net task console-application