Created
June 26, 2018 09:18
-
-
Save kayode-adechinan/42467e9f462ece2073f16b79a342ee75 to your computer and use it in GitHub Desktop.
testgist
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 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