- java.lang.Object
-
- life.expert.common.reactivestreams.ForComprehension.MonoFor1<T1>
-
- Type Parameters:
T1- the type parameter
- Enclosing class:
- ForComprehension
public static class ForComprehension.MonoFor1<T1> extends java.lang.ObjectFor-comprehension with one Mono.
-
-
Method Detail
-
yield
public <R> reactor.core.publisher.Mono<R> yield(java.util.function.Function<? super T1,? extends R> f)
Yields a result for elements of the cross product of the underlying Mono.- Type Parameters:
R- type of the resultingMonoelements- Parameters:
f- a function that maps an element of the cross product to a result- Returns:
- an
Monoof mapped results
-
yield
public reactor.core.publisher.Mono<T1> yield()
A shortcut foryield(Function.identity()).- Returns:
- an
Monoof mapped results
-
-