Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
public class RunnableJob implements Runnable{
public void run() {
public void runJobs(){
CompletableFuture<Void> f = CompletableFuture.runAsync(new RunnableJob());
f.thenRun(new RunnableJob());
CompletableFuture<RunnableJob> f2 = CompletableFuture.supplyAsync(()->new RunnableJob());
f2.thenRun(new RunnableJob());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment