As subject, I don't understand what is the use-case and how to use it.
Digging into the source code seems to be casting the mono itself from Mono<T>
into Mono<Signal<X>
.
As subject, I don't understand what is the use-case and how to use it.
Digging into the source code seems to be casting the mono itself from Mono<T>
into Mono<Signal<X>
.
As indicated in the javadoc,
dematerialize
only makes sense if theFlux
on which it is called is aFlux<Signal<T>>
It is the inverse of
materialize
, which aims at converting every signal in the source toonNext
notifications.Typical use would be to monitor all that happens in a
Flux
, not just value signals, then revert back to the original flux: to emulate thelog()
operator, you could use amaterialize().doOnNext(System.out::println).dematerialize()
for instance...