title: C# Allowing Multiple Methods to run at once
body: <p>I am trying to allow two of my methods to run every ms in the background of my script.
  However, when my method's are called, the everything else stops running while they are active, I believe this is because at the end of my method I call them both again.
  I need to run these every ms so everything works correctly, while also allowing everything else to run.
  Here is the code:</p>
  <pre><code>public async Task MuteUpdate()
          {
              //UPDATE `mutes` SET MuteUntil = MuteUntil - 1
  
              string connstr = &quot;Server=echstreme.de;Port=3306;Database=c1Look;Uid=c1Look;Pwd=Redacted;SSL Mode =None&quot;;
              MySqlConnection conn = new MySqlConnection(connstr);
  
              try
              {
                  conn.Open();
                  MySqlCommand cmd = new MySqlCommand(SQLMUteRemove, conn);
  
                  cmd.ExecuteNonQuery();
  
                  
                      conn.Close();
  
              }
              catch (Exception ex)
              {
                  Console.WriteLine(ex.ToString());
              }
               MuteRead();
               MuteUpdate();
              
          }
  
          public  async Task MuteRead()
          {
              string connStr = &quot;Server=echstreme.de;Port=3306;Database=c1Look;Uid=c1Look;Pwd=redactedINfo;SSL Mode =None&quot;;
              MySqlConnection conn = new MySqlConnection(connStr);
              try
              {
  
                  conn.Open();
  
                  MySqlCommand cmd = new MySqlCommand(&quot;SELECT * FROM `mutes` WHERE MuteUntil &lt;= 0&quot;, conn);
                  MySqlDataReader rdr = cmd.ExecuteReader();
  
                  while (rdr.Read())
                  {
                      ulong id = Convert.ToUInt64(rdr[1]);
                      Context.Guild.GetUser(id);
                      await SendLog(&quot;__Mute Manager__&quot;, &quot;**Member**        | &lt;@&quot; + rdr[1] + &quot;&gt;\n **Punishment**       | UNMUTE&quot; + &quot;\n **Punished by**          | &lt;@&quot; + rdr[4] + &quot;&gt;&quot;);
                      sqlQuery = &quot;DELETE FROM `mutes` WHERE `UserID` = &quot; + rdr[1] + &quot;;&quot;;
                      await Context.Guild.GetUser(id).RemoveRoleAsync(876561161062076416);
                  }
                  rdr.Close();
              }
              catch (Exception ex)
              {
                  Console.WriteLine(ex.ToString());
              }
          }
  </code></pre>