Last active
April 4, 2016 11:25
-
-
Save jadhavj/d9e34659d0176de05c0f831797c8482d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class Products extends Controller { | |
public CompletionStage<Result> uploadProducts() throws Exception { | |
return CompletableFuture.supplyAsync(() -> addProductsToCatalog()) | |
.thenApply(i -> ok("Products uploaded: " + i)); | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment