+ 2
T to CompletableFuture<T> with a consumer
So i have a method that receives a Consumer<T> (in this case T = List<String>) and i want to implement a method that obtains the T from the first method and returns it as a CompletableFuture<T>. Not sure if my implementatiom is the best! Any1 have any ideia? https://code.sololearn.com/cYq1RI4mc9BY/?ref=app
1 Resposta
+ 1
Just fixed the code!