sumAsBigDecimal

fun <T : Number> Flux<T>.sumAsBigDecimal(): Mono<BigDecimal>

Extension to compute the BigDecimal sum of all values emitted by a Flux of Number and return it as a Mono of BigDecimal.

Note that numbers will be mapped to BigDecimal using Java standard conversions This may lead to arbitrary precision gain or loss if the source flux contains different types Please choose an appropriate method based on the expected types in the source flux.

Author

Mark Pruden

Since

1.1.5