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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.