title: What does 'result' in ExecutorService.submit(Runnable task, T result) do?
body: <p>Looking at the javadocs it just says</p>
  
  <blockquote>
    <p><code>&lt;T&gt; Future&lt;T&gt; submit(Runnable task, T result)</code> <p>
    Submits a Runnable task for execution and returns a Future representing that task. The Future's get method will return the given result upon successful completion. <p>
    Parameters: <p>
       task - the task to submit <p>
       result - the result to return</p>
  </blockquote>
  
  <p>but what does it do with result? does it store anything there? does it just use the type of result to specify the type of <code>Future&lt;T&gt;</code>?</p>