August 2018
Intermediate to advanced
372 pages
9h 29m
English
Mono represents the asynchronous result of a single or empty value (0...1).
The following diagram was taken from the Project Reactor documentation, and it indicates how an item is emitted by a Mono object:

The preceding diagram illustrates the following flow:
The following example shows how to work using an empty value:
@Testpublic void givenAnEmptyMono_WhenTheDefaultIfEmptyOperatorIsUsed_ ThenTheDefaultValueIsDeliveredAsResult() throws Exception { String defaultMessage = "Hello world"; Mono<String> emptyMonoMessageProduced ...Read now
Unlock full access