Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-14770

Make RestEasy handle methods returning PublisherBuilder from MicroProfile RSO asynchronously

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Unresolved
    • Icon: Major Major
    • None
    • None
    • MP Reactive Messaging, REST
    • None
    • Undefined

      Currently methods returning CompletionStage (from the JDK) or Publisher (from ReactiveStreams) are handled as asynchronous.

      It would be nice to be able to return PublisherBuilder (from MP RSO) as well, since at present the following does not work:

      PublisherBuilder test() {
         return ReactiveStreams.of("x");
      }
      

      Instead you have to

      Publisher test() {
         return ReactiveStreams.of("x")
              .buildRs()
      }
      

      So it is presently the responsibility of the user to remember to call PublisherBuilder.buildRs()

            kkhan1@redhat.com Kabir Khan
            kkhan1@redhat.com Kabir Khan
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: