public static async Task resendAll() { // how to call the below two function in parallel async method ? } public static async Task rePostRoomReservation( ) { } public static async Task rePostHallReservation() { }
List<string> functionName = List<string>(); functionName.add("rePostRoomReservation"); functionName.add("rePostHallReservation"); foreach (string name in functionName ) { } await Task.WhenAll ()
await rePostRoomReservation(); await rePostHallReservation();
await
Task.WhenAll
Task roomReservationTask = rePostRoomReservation(); Task hallReservationTask = rePostHallReservation(); await Task.WhenAll(roomReservationTask, hallReservationTask);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)