liveBook · Manning

Mono

Mono is a Project Reactor publisher type representing an asynchronous computation that emits zero or one item.

How 2 Manning books explain it

Spring in Action, Sixth Edition

Mono is Project Reactor's publisher type for asynchronously emitting zero or one element, including no element when parameterized with Void.

How it is used
Carries zero-or-one results through Reactor pipelines, WebFlux handlers, WebClient requests, and reactive user lookups.
How deep it goes
Explains creation, subscription, transformation, empty results, and framework integration with code; surveys selected operations rather than the full API.
Examples
Shows a greeting pipeline, single-taco controller, ingredient HTTP requests, and reactive user lookup.
What you can do after
Apply it via Project Reactor and Spring WebFlux to transform and return single-result pipelines, and via WebClient to consume single responses.

Read how Spring in Action, Sixth Edition explains Mono →

Spring Security in Action, Second Edition

Mono is a Reactor type representing an asynchronous computation that emits zero or one item.

How it is used
Represents single-value or empty results returned by reactive web endpoints and composed with reactive authentication data.
How deep it goes
Defines publisher cardinality and demonstrates map-based composition, while stopping short of detailed scheduling or operator internals.
Examples
Uses Mono.just for a greeting and Mono<Authentication> with map for a personalized authenticated response.
What you can do after
Build it from scratch in a WebFlux controller and compose emitted values with Reactor operators.

Read how Spring Security in Action, Second Edition explains Mono →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.