static void Main(string[] args) { task1 objT1 = new task1(); objT1.ShowInfoAuthor(); task2 objT2 = new task2(); string[] strmass = { "sasa", "lfns", "дата" }; Array.Sort(strmass, objT2.CompareWords); task3 objT3 = new task3(); objT3.Helper(); task4 objT4 = new task4(); objT4.Solver(); }
await Task.WhenAll(task1, task2);
WrapTask(task1, resultBag1),
await Task.WhenAll(task1, task2, task3);
await Task.WhenAll(task1, task2).ConfigureAwait(false);
var(task1, task2) = tasks;
await Task.WhenAll(task1, task2).Caf();
await Task.WhenAll(task1, task2).WithTimeout(TasksTimeout).ConfigureAwait(false);
await Task.WhenAll(task1, task2).ConfigureAwait(continueOnCapturedContext: false);