📅  最后修改于: 2022-03-11 14:49:09.840000             🧑  作者: Mango
async Task PutTaskDelay()
{
await Task.Delay(5000);
}
private async void btnTaskDelay_Click(object sender, EventArgs e)
{
await PutTaskDelay();
MessageBox.Show("I am back");
}