title: Quit a method from the outside, is this possible?
body: <p>In case a method takes too long it would make sense to terminate it after a timeout.</p>
  <p>Is it possible to implement Method like BreakMyMethod_afterTimeout?</p>
  <pre><code>    public static void MyMethod()
      {
              //some code     
      }
  
      public static async void BreakMyMethod_afterTimeout(int timeoutInSec)
      {
          //break MyMethod after timeout          
      }
  
  
      public static void main()
      {
          BreakMyMethod_afterTimeout(60);   //Is this possible to relize?
          MyMethod();
          //the program continues here after 60 seconds at the latest
      }
  </code></pre>