completablefuture async example
Example: completablefuture async example
CompletableFuture.runAsync(() -> {
try {
TimeUnit.SECONDS.sleep(3);
System.out.println("I'm special thread "+ContextHolder.getContext());
} catch (InterruptedException e) {
e.printStackTrace();
}
});