Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8282757

Add a public static BodySubscribers::failedSubscriber method to create a failed BodySubscriber

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 19
    • core-libs

      It might be helpful to provide a public static method to create a failed body subscriber. The failed body subscriber would:
      - return a failed completion stage in getBody()
      - cancel its subscription in onSubscribe()

      Something like:

      public static <T> BodySubscriber<T> failedSubscriber(Throwable t);

            jpai Jaikiran Pai
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: