The Mono.from method

The From methods are used to  build a Flux when the value can be determined from an existing source. Unlike the Flux methods, where the sources are multi-valued, the sources for Mono are single-valued. These methods are offered in the following variants:

  • fromCallable: This method generates Mono with one value, followed by the completion event. If multi-valued datasets, like arrays or collections, are returned from Callable, then the complete dataset is pushed as an object in the single event.
  • fromFuture: This method generates Mono with one value, followed by the completion event.
  • fromSupplier: This method generates Mono with one value, followed by the completion event. 
  • fromRunnable: This method generates Mono with no ...

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.