title: Return multiple times from a method?
body: <p>I have a method that takes a while to complete. I would like my method to return a "preliminary" result before returning the "final" result.</p>
  
  <p>I would like to understand if it is possible to something like this:</p>
  
  <pre><code>public Object myMethod () {
      /*some computation here*/
  
       return firstResult;
  
       /*
       very long computation here
       */
  
       return finalResult;
  }
  </code></pre>
  
  <p>Is this even possible or can you suggest some kind of workaround?</p>