Xavier,

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

I created https://issues.apache.org/jira/browse/DELTASPIKE-1176 to track
it, hopefully someone can pick up soon.  Any chances for a contribution
from you?

John

On Tue, Jun 21, 2016 at 5:19 AM Xavier Dury <kal...@hotmail.com> 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
>

Reply via email to