[cdi-dev] async: back to completion future?

Reza Rahman reza_rahman at lycos.com
Mon Mar 7 07:56:22 EST 2016


Already explained what the issue is. This is a usability hazard.

> On Mar 7, 2016, at 2:42 AM, Martin Kouba <mkouba at redhat.com> wrote:
> 
> Dne 6.3.2016 v 16:37 Reza Rahman napsal(a):
>> How much end user feedback has there been on this? I have to be honest
>> that it surprises me to find this out now.
> 
> Well, this was discussed many times (ML, EG mtgs, F2F, etc.).
> 
>> 
>> This to me stands out as an obvious usability problem. CompletableFuture
>> is the obvious top level end user API, not CompletionStage.
> 
> Is it obvious? For me the CompletionStage looks more appropriate. But I'm open for discussions.
> 
>> Not going
>> with CompletableFuture is very likely to confuse most people. The last
>> thing we need is more potential usability problems in Java EE APIs.
>> 
>> On Mar 6, 2016, at 9:39 AM, Romain Manni-Bucau <rmannibucau at gmail.com
>> <mailto:rmannibucau at gmail.com>> wrote:
>> 
>>> Hi guys,
>>> 
>>> as a user having a ComlpetionStage makes me loose some JDK utilities,
>>> can we move back to CompletionFuture?
>>> 
>>> It would allow for instance:
>>> 
>>> // doesn't work with CompletionStage
>>> CompletionFuture.allOf(event1.fireAsync(...), event2.fireAsync(...))
>>>      .then(...)
>>> 
>>> Romain Manni-Bucau
>>> @rmannibucau <https://twitter.com/rmannibucau> | Blog
>>> <http://rmannibucau.wordpress.com> | Github
>>> <https://github.com/rmannibucau> | LinkedIn
>>> <https://www.linkedin.com/in/rmannibucau> | Tomitriber
>>> <http://www.tomitribe.com>
>>> _______________________________________________
>>> cdi-dev mailing list
>>> cdi-dev at lists.jboss.org <mailto:cdi-dev at lists.jboss.org>
>>> https://lists.jboss.org/mailman/listinfo/cdi-dev
>>> 
>>> Note that for all code provided on this list, the provider licenses
>>> the code under the Apache License, Version 2
>>> (http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas
>>> provided on this list, the provider waives all patent and other
>>> intellectual property rights inherent in such information.
>> 
>> 
>> _______________________________________________
>> cdi-dev mailing list
>> cdi-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/cdi-dev
>> 
>> Note that for all code provided on this list, the provider licenses the code under the Apache License, Version 2 (http://www.apache.org/licenses/LICENSE-2.0.html). For all other ideas provided on this list, the provider waives all patent and other intellectual property rights inherent in such information.
>> 
> 
> -- 
> Martin Kouba
> Software Engineer
> Red Hat, Czech Republic



More information about the cdi-dev mailing list