Fwd: CompletableFuture eventual race condition

2016-07-13 Thread Francois Green
-- Forwarded message -- From: Francois Green Date: Mon, Jul 11, 2016 at 3:22 PM Subject: Re: CompletableFuture eventual race condition To: Martin Buchholz I'm sorry for not posting the complete example. The claim was, given enough trials, this program will eventually fa

CompletableFuture eventual race condition

2016-07-11 Thread Francois Green
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 e