Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CompletableFuture<Void> promise = CompletableFuture.runAsync(() -> …);
- promise.thenApply(result -> {
- System.out.println(“Task is finished!”);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement