Amit Kumar Singh

Amit Kumar Singh

  • 401
  • 4k
  • 203.3k

Async and Await in C#

Aug 2 2018 5:36 AM
Hi,
    I am using Async and await to call 2 methods at a time in main method.It is executing fine.
 
But in method one value is greater then method 2.So one method 2 completes..Execution comes out of loop.
 
static void Main()
{
    Method1();  1 Lakh records (Async and await used on method 1)
   Method2();    50 Thousands records
 
 
Thanks
Amit 

Answers (3)