2016-03-08 0:01 GMT+01:00 Reza Rahman <reza_rahman(a)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(a)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.