[cdi-dev] async: back to completion future?
Romain Manni-Bucau
rmannibucau at gmail.com
Tue Mar 8 02:08:52 EST 2016
2016-03-08 0:01 GMT+01:00 Reza Rahman <reza_rahman at lycos.com>:
> The email chain is getting long so I am starting fresh. Kindly explain
> what the use case here is then if it's not being used as a promise. Both of
> these APIs are promises - their purpose is to provide a non-blocking handle
> to a future event.
>
> If that's not the use case here then why are we using either API?
>
Only the chaining part is useful, the promise (setResult(), setError() side
of promises) is an implementation detail. if you want an impl checking the
container state to throw an IllegalStateException if the CDI context is
down when the chain is triggered you can today.
> _______________________________________________
> 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.
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/cdi-dev/attachments/20160308/dbc92dc8/attachment-0001.html
More information about the cdi-dev
mailing list