Update docs for Kotlin method signatures

See gh-954
This commit is contained in:
rstoyanchev
2024-05-01 08:01:05 +01:00
parent 0413950b2e
commit b8c4899475

View File

@@ -213,6 +213,7 @@ Schema mapping handler methods can return:
- A resolved value of any type.
- `Mono` and `Flux` for asynchronous value(s). Supported for controller methods and for
any `DataFetcher` as described in xref:request-execution.adoc#execution.reactive-datafetcher[Reactive `DataFetcher`].
- Kotlin coroutine and `Flow` are adapted to `Mono` and `Flux`.
- `java.util.concurrent.Callable` to have the value(s) produced asynchronously.
For this to work, `AnnotatedControllerConfigurer` must be configured with an `Executor`.
@@ -753,6 +754,9 @@ Batch mapping methods can return:
| Imperative variants to be invoked asynchronously. For this to work,
`AnnotatedControllerConfigurer` must be configured with an `Executor`.
| Kotlin Coroutine with `Map<K,V>`, Kotlin `Flow<K,V>`
| Adapted to `Mono<Map<K,V>` and `Flux<V>`.
|===