Hi,
I want to implement a Mono that returns nothing, but evaluates asynchronously a side effect function. The only ways to create a Mono<Void> in the API I see are justOrEmpty, which evaluates the arg given or empty that does nothing. I was expecting a Mono.fromConsumer, but there is only a Mono.fromSupplier, which can't be used for Void.
Or should I do (which seems too late): Mono.empty().doOnSuccess(() -> System.println("Hello")) ?
Am I missing something?
Thanks for your help.
BR,
Leo