The Mono.just method

The Mono.just method is the simplest method for Mono generation. It takes a single value and generates a finite Mono stream from it. A completion event is published after publishing the specified value:

Mono.just("Red");Mono.justOrEmpty(value);Mono.justOrEmpty(Optional.empty());

Get Hands-On Reactive Programming with Reactor now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.