[cdi-dev] Behavior of CDI fireAsync when using CompletionStage.whenCompleteAsync

Laird Nelson ljnelson at gmail.com
Tue Mar 7 11:57:29 EST 2017


On Tue, Mar 7, 2017 at 12:15 AM Martin Kouba <mkouba at redhat.com> wrote:

> The only thing which is guaranteed
> is that async observers and eventual async callbacks are executed
> asynchronously and do not block the thread from where the event was fired.
>

What about:

  event.fireAsync(someEvent,
NotificationOptions.ofExecutor(someSynchronousExecutor))

…?

I know that's contrived but…?

Best,
Laird
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/cdi-dev/attachments/20170307/bbed4cc5/attachment.html 


More information about the cdi-dev mailing list