+ 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

9th Jul 2018, 12:34 PM
Chriptus13
Chriptus13 - avatar
1 Resposta
+ 1
Just fixed the code!
10th Jul 2018, 3:08 AM
Chriptus13
Chriptus13 - avatar