Home

Add a comment

 

Re: Non-Blocking Asynchronous Java 8 and Scala's Try/Success/Failure

It turns out Java already supports chaining futures, with the CompletableFuture. So I added an example of how to use it. It's implementation doesn't provide Try/Success/Failure, but via the "exceptionally" method, you get the same thing. It's very impressive! See this link for my example: https://github.com/maxant/share/blob/master/blog20131013_asyncJava8TrySuccessFailure/src/ch/maxant/async/blackboxtests/TestThreeCompletableFutureJava8.java

Re: Non-Blocking Asynchronous Java 8 and Scala's Try/Success/Failure


Title
Body
HTML : b, strong, i, em, blockquote, br, p, pre, a href="", ul, ol, li, sub, sup
Name
E-mail address
Website
Remember me Yes  No 

E-mail addresses are not publicly displayed, so please only leave your e-mail address if you would like to be notified when new comments are added to this blog entry (you can opt-out later).