Using Java, I introduced myself to the wonders of CompletableFuture
s.
There's one thing I do not understand, how do I pass parameters to the executed functions?
Sample code:
CompletableFuture.supplyAsync(MyClass::myMethod, ???args???);
Using Java, I introduced myself to the wonders of CompletableFuture
s.
There's one thing I do not understand, how do I pass parameters to the executed functions?
Sample code:
CompletableFuture.supplyAsync(MyClass::myMethod, ???args???);