等待未完成的任务完成后,才将控制权交给调用者。
当您在Main()中使用它时,谁会获得控制权?
public static async Task Main()
{
await F1() ; //This await will pass the control to ???
}
public static async Task F1()
{
await Task.Run(()=>{...}) ; //This await will pass the control to Main()
}