T to CompletableFuture<T> with a consumer | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answer
+ 1
Just fixed the code!
10th Jul 2018, 3:08 AM
Chriptus13
Chriptus13 - avatar