Update mvc-ann-async.adoc

Added a section explaining WebAsyncTask return type along with java and kotlin example code.

Signed-off-by: addoDev <211474908+addoDev@users.noreply.github.com>
This commit is contained in:
addoDev 2025-05-13 17:16:14 +05:30 committed by GitHub
parent 465ab0d928
commit aa00fff6c5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -99,7 +99,7 @@ xref:web/webmvc/mvc-ann-async.adoc#mvc-ann-async-configuration-spring-mvc[config
[[mvc-ann-async-webasynctask]]
== `WebAsyncTask`
`WebAsyncTask` is a holder/wrapper for a `java.util.concurrent.Callable` that allows you set a custom asynchronous request timeout value and a custom `AsyncTaskExecutor` for executing the `java.util.concurrent.Callable` if you want to use a different `AsyncTaskExecutor` than the default one used by Spring MVC. Below is an example of using `WebAsyncTask`:
`WebAsyncTask` is a holder/wrapper for a `java.util.concurrent.Callable` that allows you to set a custom asynchronous request timeout value and a custom `AsyncTaskExecutor` for executing the `java.util.concurrent.Callable` if you want to use a different `AsyncTaskExecutor` than the default one used by Spring MVC. Below is an example of using `WebAsyncTask`:
[tabs]
======