title: Nesting async/await
body: <p>as follow ,what's the best way for Run Task simultaneously with async/await functions:</p>
  
  <pre><code>private async void ProcessItem()
  {
      while (true)
      {
          await this.FetchDeviceData(); //Read From Devices
          await Task.Delay(2000);   //300000
          await this.Process(); //Insert Into DataBase
      }
  }
  
  private async Task FetchDeviceData()
  {
      await Task.Run(() =&gt;
      {
          //Read From all Devices;
      }
  } 
  
  private async Task Process()
  {
      if (!(await RDataBase.ProcessItem(Mem,Date)))
      //Update Record;
  }
  
  public static async Task&lt;bool&gt; ProcessItem(int Memb, int Date)
  {
      return await Task.Run(() =&gt;
      {
          try
          {
              //Array List = Read Device Info From DataBase
              return True;
          }
          catch
          {
              return false;
          }
      });
  }
  </code></pre>