January 2018
Intermediate to advanced
414 pages
10h 29m
English
Reactor provides a class to create a publisher that will return from 0 to an undetermined number of elements; that class is named Flux.
To create a simple Flux, we can just do:
val customerFlux = Flux.fromIterable(listOf(Customer(1,"one"), Customer(2, "two")))
Or, we can use the adequate Kotlin version:
val customerFlux = listOf(Customer(1,"one"), Customer(2, "two")).toFlux()
Read now
Unlock full access