T to CompletableFuture<T> with a consumer | Sololearn: Learn to code for FREE!

+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

7/9/2018 12:34:48 PM

Chriptus13

1 Answer

New Answer

+1

Just fixed the code!