Skip to content

Instantly share code, notes, and snippets.

@theboreddev
Created June 30, 2020 21:24
Show Gist options
  • Select an option

  • Save theboreddev/0cd1e1b5292a095ac5487b2403cf5171 to your computer and use it in GitHub Desktop.

Select an option

Save theboreddev/0cd1e1b5292a095ac5487b2403cf5171 to your computer and use it in GitHub Desktop.
complete
CompletableFuture<String> completableFuture = new CompletableFuture<>();
completableFuture
.thenAccept(System.out::println);
completableFuture.complete("I have completed!");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment