CompletableFuture eventual race condition

Francois Green francois.green at gmail.com
Mon Jul 11 17:44:19 UTC 2016


I sorry for posting in list, but I need an authoritative answer.  I was
told by one of the developers of another JVM (Ceylon) language that

CompletableFuture.supplyAsync(() -> "Hejjo Worjd from Java")
        .thenApply(s -> s.replaceAll("j","l"))
        .thenAccept(System.out::println);

would eventual fail to print if run enough times.  Is this true?


More information about the core-libs-dev mailing list