title: Django signals - Wait for signal in function
body: <p>I am using django and I want to send a signal from one function and and create a 'wait-point' in the middle of another function for that signal.</p>
  
  <p>In more detail,
  I am using a 3rd party api. So,</p>
  
  <pre><code>def foo():
     id = thirdPartyFunction(action='/bar')
     id.save()
     # send signal!
     return render_to_response('pleaseWait.html')
  
  def bar():
     # initialize this and that
     # ...
     # WAIT FOR SIGNAL
     return HttpResponseRedirect('success.html')
  </code></pre>
  
  <p>How do I create a listener in the middle of a function. 
  Currently, my understanding is that the signal dispatcher calls another function. I have no idea how to do this.</p>
  
  <p>Thanks for your time and help :)</p>