toBatchResult

fun Flux<AggregateId>.toBatchResult(afterId: String, request: ServerRequest, exceptionHandler: RequestExceptionHandler): Mono<BatchResult>

The batch's result: the highest id processed and how many, or, when the batch fails, its error mapped and logged by RequestExceptionHandler.handleInBody, like every other error of request.