title: Pass parameters to CompletableFutures in Java
body: <p>Using Java, I introduced myself to the wonders of <code>CompletableFuture</code>s.</p>
  
  <p>There's one thing I do not understand, how do I pass parameters to the executed functions?</p>
  
  <p>Sample code:</p>
  
  <pre><code>CompletableFuture.supplyAsync(MyClass::myMethod, ???args???);
  </code></pre>