deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John D. Ament" <>
Subject Re: @Futureable and void-returning methods
Date Wed, 22 Jun 2016 23:32:50 GMT

Thanks for the report.  That's really a miss IMHO maybe Romain knows more?

I created to track
it, hopefully someone can pick up soon.  Any chances for a contribution
from you?


On Tue, Jun 21, 2016 at 5:19 AM Xavier Dury <> wrote:

> Hi,
> I was trying to rewrite my @Asynchronous (EJB) methods with @Futureable
> (Deltaspike) but noticed that @Futureable does not work with methods
> returning void.
> Was it somehow overlooked or deliberately omitted? I could understand that
> @Futureable means that a Future<T> must be returned as its name would
> suggest.
> In my case, I am trying to process elements in parallel and use a
> CompletionService (which needs an Executor) to do something after all
> elements have been processed. I implemented a simple Executor with
> @Futureable run() but it does not work because run() is a void method.
> Thanks,
> Xavier

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message