Module life.expert

Class ForComprehension.FluxFor1<T1>

  • Type Parameters:
    T1 - the type parameter
    Enclosing class:
    ForComprehension

    public static class ForComprehension.FluxFor1<T1>
    extends java.lang.Object
    For-comprehension with one Flux.
    • Method Summary

      Modifier and Type Method Description
      reactor.core.publisher.Flux<T1> yield()
      A shortcut for yield(Function.identity()).
      <R> reactor.core.publisher.Flux<R> yield​(java.util.function.Function<? super T1,​? extends R> f)
      Yields a result for elements of the cross product of the underlying Flux.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • yield

        public <R> reactor.core.publisher.Flux<R> yield​(java.util.function.Function<? super T1,​? extends R> f)
        Yields a result for elements of the cross product of the underlying Flux.
        Type Parameters:
        R - type of the resulting Flux elements
        Parameters:
        f - a function that maps an element of the cross product to a result
        Returns:
        an Flux of mapped results
      • yield

        public reactor.core.publisher.Flux<T1> yield()
        A shortcut for yield(Function.identity()).
        Returns:
        an Flux of mapped results