title: Use try/catch block on called functions or task.wait()?
body: <p>what's the difference between using try catch surrounding a function block that is called by some task and calling try/catch on task.wait(). If i take care of exceptions within the function, do i still need to worry about any exception that might occur from task.wait() ?</p>
  
  <pre><code>var factory = new TaskFactory();
  task t1= factory.StartNew(() =&gt; funA();
  t1.Wait();
  
  
  void funcA()
  {
    try{..}
    .
    .
    catch{..}
  }
  </code></pre>
  
  <p>Or</p>
  
  <pre><code>var factory = new TaskFactory();
  task t1= factory.StartNew(() =&gt; funA();
  try
  {
    t1.Wait();
  }
  catch{....}
  
  void funcA()
  {
  
  }
  </code></pre>