1

Using Java, I introduced myself to the wonders of CompletableFutures.

There's one thing I do not understand, how do I pass parameters to the executed functions?

Sample code:

CompletableFuture.supplyAsync(MyClass::myMethod, ???args???);
Sotirios Delimanolis
  • 274,122
  • 60
  • 696
  • 724
mydriasis
  • 71
  • 1
  • 6

0 Answers0