Can anybody explain me difference between last() and takeLast() methods ? As documentation tell:
last() - Emit the last element observed before complete signal as a Mono, or emit NoSuchElementException error if the source was empty. For a passive version use takeLast(int)
takeLast() - Emit the last N values this Flux emitted before its completion.
As for me it's the same. I can not understand the differences. Can someone explain me with a simple example? Thanks in advance