title: Return multiple times from one api call in Flask Restful
body: <p>I want to call a generate() function and send a user a message, but then continue executing a function.</p>
  
  <pre><code>@application.route("/api/v1.0/gen", methods=['POST'])
  def generate():
      return "Your id for getting the generated data is 'hgF8_dh4kdsRjdr'"
      main() #generate a data
      return "Successfully generated something. Use your id to get the data"
  </code></pre>
  
  <p>I understand that this is not a correct way of returning, but I hope you get the idea of what I am trying to accomplish. Maybe Flask has some build-in method to return multiple times from one api call?</p>