Class UniConvert<T>

java.lang.Object
io.smallrye.mutiny.groups.UniConvert<T>

public class UniConvert<T> extends Object
  • Constructor Details

    • UniConvert

      public UniConvert(Uni<T> upstream)
  • Method Details

    • with

      public <R> R with(Function<Uni<T>,R> converter)
      Transforms this Uni into a type using the provided converter.
      Type Parameters:
      R - the result type
      Parameters:
      converter - the converter function
      Returns:
      an instance of R
      Throws:
      RuntimeException - if the conversion fails.
    • toCompletionStage

      @CheckReturnValue public CompletionStage<T> toCompletionStage()
    • toCompletableFuture

      @CheckReturnValue public CompletableFuture<T> toCompletableFuture()
    • toPublisher

      @CheckReturnValue public Flow.Publisher<T> toPublisher()