@Asyncjavadoc suggests that you can refine the return type of the Future you are returning to ListenableFuture, and provide an AsyncResult as a value holder.
However, both ListenableFuture and AsyncResult are deprecated since 6.0, in favor of CompletableFuture. @Async documentation should reflect this and stop suggesting ListenableFuture as result type.
@Async
javadoc suggests that you can refine the return type of theFuture
you are returning toListenableFuture
, and provide anAsyncResult
as a value holder.However, both
ListenableFuture
andAsyncResult
are deprecated since6.0
, in favor ofCompletableFuture
.@Async
documentation should reflect this and stop suggestingListenableFuture
as result type.