title: Call function from another function and move on (don't wait for finish) python
body: <p>I read a lot of about multiprocessing, threading but still i have problem with simple thing. I have 2 functions. I want call one by another and move one (this called function can't slow me up).</p>
  <p>Example</p>
  <pre><code>def main():
      print(&quot;my operations&quot;)
      Thread(target=child(), args=()).start()
      print(&quot;rest operations&quot;)
  
  
  def child():
      #here are some operations that takes 3 seconds
      print(&quot;background operations&quot;)
  </code></pre>
  <p>The point is that operations from child function can not slow me down. I want to just call that function and move on. So I want output like that:</p>
  <blockquote>
  <pre><code>my operations
  rest operations
  background operations
  </code></pre>
  </blockquote>
  <p>But doing this using <code>Thread(target=child(), args=()).start()</code> looks like</p>
  <blockquote>
  <pre><code>my operations
  </code></pre>
  </blockquote>
  <pre><code>#then call child function wait 3 seconds
  </code></pre>
  <blockquote>
  <pre><code>background operations
  rest operations
  </code></pre>
  </blockquote>
  <p>There is and option to do what I want ?</p>