多线程(一)
https://www.cnblogs.com/feipeng8848/p/10188871.html
彻底搞懂 C# 的 async/await
private async void button1_Click(object sender, EventArgs e) { var t = Task.Run(() => { Thread.Sleep(5000); return "Hello I am TimeConsumingMethod"; }); textBox1.Text = await t; }

浙公网安备 33010602011771号