public async Task LoadAll()
{
Task task1 = Task.Run(() => Method1());
Task task2 = Task.Run(() => Method2());
Task task3 = Task.Run(() => Method3());
// Task task4 = Task.Run(() => Method4());
// 等待所有任务完成
await Task.WhenAll(task1, task2, task3);
}
11-11