title: How to stop a function at a specific time and continue with next function in python?
body: <p>I have a code:</p>
  
  <pre><code>function_1()
  function_2()
  </code></pre>
  
  <p>Normally, function_1() takes 10 hours to end.
  But I want function_1() to run for 2 hours, and after 2 hours, function_1 must return and program must continue with function_2(). It shouldn't wait for function_1() to be completed. Is there a way to do this in python?</p>