Class Keep

java.lang.Object
org.apache.pekko.stream.scaladsl.Keep

public class Keep extends Object
Convenience functions for often-encountered purposes like keeping only the left (first) or only the right (second) of two input values.
  • Constructor Details

    • Keep

      public Keep()
  • Method Details

    • left

      public static <L, R> scala.Function2<L,R,L> left()
    • right

      public static <L, R> scala.Function2<L,R,R> right()
    • both

      public static <L, R> scala.Function2<L,R,scala.Tuple2<L,R>> both()
    • none

      public static <L, R> scala.Function2<L,R,NotUsed> none()