[
https://issues.jboss.org/browse/CDI-729?page=com.atlassian.jira.plugin.sy...
]
Gordon Hutchison edited comment on CDI-729 at 6/19/18 8:19 AM:
---------------------------------------------------------------
This sort of approach could prove very useful in trying to 'plug-together' a
stream of CDI events from some other reactive stream.
was (Author: hutchig):
This sort of approach could prove very useful in tryin to 'plug-together' a stream
of CDI events from some other reactive stream.
Async event not CompletionStage friendly
----------------------------------------
Key: CDI-729
URL:
https://issues.jboss.org/browse/CDI-729
Project: CDI Specification Issues
Issue Type: Feature Request
Reporter: Romain Manni-Bucau
The goal of this ticket is to enable user to get injected the completion future instead
of the raw event and return another completion stage (generic type ignored) to enable the
"chain" to be synched.
Here is a sample:
1. fireAsync(persistEvent)
2. observer implementation does: return future.thenCompose(db::doAsyncPersist)
3. when the user gets back the result of the fireAsync the doAsyncPersist is completed.
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)