Skip to content

Instantly share code, notes, and snippets.

@kayode-adechinan
Created June 26, 2018 09:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kayode-adechinan/42467e9f462ece2073f16b79a342ee75 to your computer and use it in GitHub Desktop.
Save kayode-adechinan/42467e9f462ece2073f16b79a342ee75 to your computer and use it in GitHub Desktop.
testgist
public void test0(){
CompletableFuture.runAsync(this::sendReport);
}
public void test1(){
CompletableFuture.supplyAsync(this::sendMsg);
}
private String sendMsg() {
return "on going";
}
private void sendReport() {
System.out.println("on going");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment